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
1.6.0
Mark Michelson 17 years ago
parent 1c6382e638
commit 0ecfb8e29e

@ -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));
}
}
}

Loading…
Cancel
Save