projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b55f06
)
Move skinny to support poll
author
Mark Spencer
<markster@digium.com>
Mon, 26 Apr 2004 12:51:49 +0000
(12:51 +0000)
committer
Mark Spencer
<markster@digium.com>
Mon, 26 Apr 2004 12:51:49 +0000
(12:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2777
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_skinny.c
patch
|
blob
|
history
diff --git
a/channels/chan_skinny.c
b/channels/chan_skinny.c
index
e473f23
..
5f7b61b
100755
(executable)
--- 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));