[asterisk-commits] mmichelson: branch 1.6.0 r159314 - /branches/1.6.0/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 25 16:28:49 CST 2008


Author: mmichelson
Date: Tue Nov 25 16:28:48 2008
New Revision: 159314

URL: http://svn.digium.com/view/asterisk?view=rev&rev=159314
Log:
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.


Modified:
    branches/1.6.0/main/channel.c

Modified: branches/1.6.0/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/main/channel.c?view=diff&rev=159314&r1=159313&r2=159314
==============================================================================
--- branches/1.6.0/main/channel.c (original)
+++ branches/1.6.0/main/channel.c Tue Nov 25 16:28:48 2008
@@ -2437,7 +2437,9 @@
 			}
 		}
 		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));
+			}
 		}
 	}
 




More information about the asterisk-commits mailing list