mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
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/branches/1.4@154685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2038,6 +2038,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (read(chan->alertpipe[0], &blah, sizeof(blah)) < 0) {
|
if (read(chan->alertpipe[0], &blah, sizeof(blah)) < 0) {
|
||||||
|
if (errno != EINTR && errno != EAGAIN)
|
||||||
ast_log(LOG_WARNING, "read() failed: %s\n", strerror(errno));
|
ast_log(LOG_WARNING, "read() failed: %s\n", strerror(errno));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user