[asterisk-commits] russell: trunk r114285 - in /trunk: ./ main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 18 16:51:06 CDT 2008


Author: russell
Date: Fri Apr 18 16:51:05 2008
New Revision: 114285

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114285
Log:
Merged revisions 114284 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114284 | russell | 2008-04-18 16:48:06 -0500 (Fri, 18 Apr 2008) | 2 lines

Don't destroy a manager session if poll() returns an error of EAGAIN.

........

Modified:
    trunk/   (props changed)
    trunk/main/manager.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=114285&r1=114284&r2=114285
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Fri Apr 18 16:51:05 2008
@@ -2847,7 +2847,7 @@
 		/* If we get a signal from some other thread (typically because
 		 * there are new events queued), return 0 to notify the caller.
 		 */
-		if (errno == EINTR)
+		if (errno == EINTR || errno == EAGAIN)
 			return 0;
 		ast_log(LOG_WARNING, "poll() returned error: %s\n", strerror(errno));
 		return -1;




More information about the asterisk-commits mailing list