mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user