From f7c20e0dec4a485961906b56fecb402361b32139 Mon Sep 17 00:00:00 2001
From: Steve Murphy <murf@digium.com>
Date: Wed, 5 Nov 2008 16:11:11 +0000
Subject: [PATCH] Merged revisions 154685 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r154685 | murf | 2008-11-05 09:06:53 -0700 (Wed, 05 Nov 2008) | 1 line

This fix was prompted by communication from user, who was seeing thousands of error logs... looks like EAGAIN. Made such uninteresting.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@154687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 main/channel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main/channel.c b/main/channel.c
index 34733af541..ec253ae046 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -2442,7 +2442,8 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
 			}
 		}
 		if (read(chan->alertpipe[0], &blah, sizeof(blah)) < 0) {
-			ast_log(LOG_WARNING, "read() failed: %s\n", strerror(errno));
+			if (errno != EINTR && errno != EAGAIN)
+				ast_log(LOG_WARNING, "read() failed: %s\n", strerror(errno));
 		}
 	}
 
-- 
GitLab