Don't destroy a manager session if poll() returns an error of EAGAIN.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2008-04-18 21:48:06 +00:00
parent 992264a77f
commit c8c2c33550

View File

@@ -2217,7 +2217,7 @@ static int get_input(struct mansession *s, char *output)
s->waiting_thread = AST_PTHREADT_NULL;
ast_mutex_unlock(&s->__lock);
if (res < 0) {
if (errno == EINTR) {
if (errno == EINTR || errno == EAGAIN) {
return 0;
}
ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));