]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Handle 'Resource temporarily unavailable' error more gracefully.
authorPaul Belanger <paul.belanger@polybeacon.com>
Wed, 19 Jan 2011 17:08:01 +0000 (17:08 +0000)
committerPaul Belanger <paul.belanger@polybeacon.com>
Wed, 19 Jan 2011 17:08:01 +0000 (17:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@302461 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_timing_timerfd.c

index f79c86376b40044cdd40992349ce71acfa7a6c7e..a1c6d4b5fa1d683770fe94ff82e28516ba55d84a 100644 (file)
@@ -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));