From 0ecfb8e29e35f0237c58968db0444c0929cee58b Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Tue, 25 Nov 2008 22:28:48 +0000 Subject: [PATCH] I don't care what anyone says, this change is going into 1.6.0. Otherwise, the simple act of logging an agent in spams the CLI with warning messages about failed reads of the alertpipe. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@159314 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/channel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/channel.c b/main/channel.c index 548c6d8f94..90fccafd10 100644 --- a/main/channel.c +++ b/main/channel.c @@ -2437,7 +2437,9 @@ 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)); + } } }