mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Move skinny to support poll
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user