[asterisk-commits] russell: branch 1.4 r114284 - /branches/1.4/main/manager.c

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


Author: russell
Date: Fri Apr 18 16:48:06 2008
New Revision: 114284

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114284
Log:
Don't destroy a manager session if poll() returns an error of EAGAIN.

Modified:
    branches/1.4/main/manager.c

Modified: branches/1.4/main/manager.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/manager.c?view=diff&rev=114284&r1=114283&r2=114284
==============================================================================
--- branches/1.4/main/manager.c (original)
+++ branches/1.4/main/manager.c Fri Apr 18 16:48:06 2008
@@ -2217,7 +2217,7 @@
 		s->waiting_thread = AST_PTHREADT_NULL;
 		ast_mutex_unlock(&s->__lock);
 		if (res < 0) {
-			if (errno == EINTR) {
+			if (errno == EINTR || errno == EAGAIN) {
 				return 0;
 			}
 			ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));




More information about the asterisk-commits mailing list