Merged revisions 114284 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114284 | russell | 2008-04-18 16:48:06 -0500 (Fri, 18 Apr 2008) | 2 lines Don't destroy a manager session if poll() returns an error of EAGAIN. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114285 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
2049774232
commit
d12659fe30
|
@ -2847,7 +2847,7 @@ static int get_input(struct mansession *s, char *output)
|
||||||
/* If we get a signal from some other thread (typically because
|
/* If we get a signal from some other thread (typically because
|
||||||
* there are new events queued), return 0 to notify the caller.
|
* there are new events queued), return 0 to notify the caller.
|
||||||
*/
|
*/
|
||||||
if (errno == EINTR)
|
if (errno == EINTR || errno == EAGAIN)
|
||||||
return 0;
|
return 0;
|
||||||
ast_log(LOG_WARNING, "poll() returned error: %s\n", strerror(errno));
|
ast_log(LOG_WARNING, "poll() returned error: %s\n", strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Reference in New Issue