summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/res_timing_timerfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_timing_timerfd.c b/res/res_timing_timerfd.c
index 438603b55..ae5d2b411 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));