diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-25 22:28:48 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-25 22:28:48 +0000 |
commit | d53a2b0239419735827c2eb7cea1a7c8494b2528 (patch) | |
tree | 26baec9bdf228aac094d7dd81c8f1261b5ec03c8 | |
parent | 8de8ee07b3c979ebf275c74622f9f26e1f8da5af (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@159314 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index 548c6d8f9..90fccafd1 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)); + } } } |