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
1.6.2
Paul Belanger 15 years ago
parent ed7b735466
commit c9c8b434f0

@ -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));

Loading…
Cancel
Save