[asterisk-commits] tilghman: trunk r253255 - /trunk/main/stdtime/localtime.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 18 10:45:29 CDT 2010


Author: tilghman
Date: Thu Mar 18 10:45:26 2010
New Revision: 253255

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=253255
Log:
Just in case of a race, send the signal on interrupt.

Modified:
    trunk/main/stdtime/localtime.c

Modified: trunk/main/stdtime/localtime.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/stdtime/localtime.c?view=diff&rev=253255&r1=253254&r2=253255
==============================================================================
--- trunk/main/stdtime/localtime.c (original)
+++ trunk/main/stdtime/localtime.c Thu Mar 18 10:45:26 2010
@@ -261,6 +261,9 @@
 		} else if (res < 0) {
 			if (errno == EINTR || errno == EAGAIN) {
 				/* If read fails, try again */
+				AST_LIST_LOCK(&zonelist);
+				ast_cond_broadcast(&initialization);
+				AST_LIST_UNLOCK(&zonelist);
 				continue;
 			}
 			/* Sanity check -- this should never happen, either */




More information about the asterisk-commits mailing list