From: Paul Belanger Date: Wed, 19 Jan 2011 17:08:01 +0000 (+0000) Subject: Handle 'Resource temporarily unavailable' error more gracefully. X-Git-Tag: 1.6.2.18-rc1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9c8b434f044e8dd07bdf6ceaf1f433fd7141dc2;p=thirdparty%2Fasterisk.git Handle 'Resource temporarily unavailable' error more gracefully. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@302461 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_timing_timerfd.c b/res/res_timing_timerfd.c index f79c86376b..a1c6d4b5fa 100644 --- a/res/res_timing_timerfd.c +++ b/res/res_timing_timerfd.c @@ -165,7 +165,7 @@ static void timerfd_timer_ack(int handle, unsigned int quantity) 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));