[asterisk-commits] pabelanger: branch 1.6.2 r302461 - /branches/1.6.2/res/res_timing_timerfd.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 19 11:08:05 CST 2011


Author: pabelanger
Date: Wed Jan 19 11:08:01 2011
New Revision: 302461

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=302461
Log:
Handle 'Resource temporarily unavailable' error more gracefully.

Modified:
    branches/1.6.2/res/res_timing_timerfd.c

Modified: branches/1.6.2/res/res_timing_timerfd.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/res/res_timing_timerfd.c?view=diff&rev=302461&r1=302460&r2=302461
==============================================================================
--- branches/1.6.2/res/res_timing_timerfd.c (original)
+++ branches/1.6.2/res/res_timing_timerfd.c Wed Jan 19 11:08:01 2011
@@ -165,7 +165,7 @@
 	do {
 		read_result = read(handle, &expirations, sizeof(expirations));
 		if (read_result == -1) {
-			if (errno == EINTR) {
+			if (errno == EINTR || errno == EAGAIN) {
 				continue;
 			} else {
 				ast_log(LOG_ERROR, "Read error: %s\n", strerror(errno));




More information about the asterisk-commits mailing list