aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmanager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/manager.c b/manager.c
index d0c3eef2b..f868b9560 100755
--- a/manager.c
+++ b/manager.c
@@ -1301,6 +1301,7 @@ static int get_input(struct mansession *s, char *output)
res = poll(fds, 1, -1);
if (res < 0) {
ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));
+ return -1;
} else if (res > 0) {
ast_mutex_lock(&s->lock);
res = read(s->fd, s->inbuf + s->inlen, sizeof(s->inbuf) - 1 - s->inlen);