mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Merged revisions 302462 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ................ r302462 | pabelanger | 2011-01-19 12:09:35 -0500 (Wed, 19 Jan 2011) | 9 lines Merged revisions 302461 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........ r302461 | pabelanger | 2011-01-19 12:08:01 -0500 (Wed, 19 Jan 2011) | 2 lines Handle 'Resource temporarily unavailable' error more gracefully. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@302463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -165,7 +165,7 @@ static void timerfd_timer_ack(int handle, unsigned int quantity)
|
|||||||
do {
|
do {
|
||||||
read_result = read(handle, &expirations, sizeof(expirations));
|
read_result = read(handle, &expirations, sizeof(expirations));
|
||||||
if (read_result == -1) {
|
if (read_result == -1) {
|
||||||
if (errno == EINTR) {
|
if (errno == EINTR || errno == EAGAIN) {
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_ERROR, "Read error: %s\n", strerror(errno));
|
ast_log(LOG_ERROR, "Read error: %s\n", strerror(errno));
|
||||||
|
Reference in New Issue
Block a user