]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
This fix was prompted by communication from user, who was seeing thousands of error...
authorSteve Murphy <murf@digium.com>
Wed, 5 Nov 2008 16:06:53 +0000 (16:06 +0000)
committerSteve Murphy <murf@digium.com>
Wed, 5 Nov 2008 16:06:53 +0000 (16:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@154685 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 621c2b1effbfb3d33c6fba952017b74444330a5e..3f8d69b02fdfc97c3b6aa151770b18f9f0d7ce74 100644 (file)
@@ -2038,7 +2038,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));
                }
        }