aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xchannels/chan_skinny.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index e473f230a..5f7b61b02 100755
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -2258,13 +2258,12 @@ static int get_input(struct skinnysession *s)
{
int res;
- int dlen = 0;
+ int dlen = 0;
+ struct pollfd fds[1];
- fd_set fds;
- FD_ZERO(&fds);
- FD_SET(s->fd, &fds);
-
- res = ast_select(s->fd + 1, &fds, NULL, NULL, NULL);
+ fds[0].fd = s->fd;
+ fds[0].events = POLLIN;
+ res = poll(fds, 1, -1);
if (res < 0) {
ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));