summaryrefslogtreecommitdiff
path: root/pbx
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-04-26 03:02:49 +0000
committerMark Spencer <markster@digium.com>2004-04-26 03:02:49 +0000
commitce44c6ec411ad7c1435b4d882d4479f9ad1a2149 (patch)
treef42052117101b06005792ef797580ab7ba46a2c6 /pbx
parent459fda5e44df80397dfa344cffdbbf5cd5c0102c (diff)
More select/poll updates for various applications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx')
-rwxr-xr-xpbx/pbx_wilcalu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pbx/pbx_wilcalu.c b/pbx/pbx_wilcalu.c
index 9fdf642be..69578c8a0 100755
--- a/pbx/pbx_wilcalu.c
+++ b/pbx/pbx_wilcalu.c
@@ -61,7 +61,7 @@ static void *autodial(void *ignore)
char * sendbufptr=sendbuf;
int fd=open(dialfile,O_RDONLY|O_NONBLOCK);
int flags = fcntl(fd, F_GETFL);
- fd_set fds;
+ struct pollfd fds[1];
fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
if (option_debug)
ast_log(LOG_DEBUG, "Entered Wil-Calu fd=%d\n",fd);
@@ -77,9 +77,9 @@ static void *autodial(void *ignore)
void *pass;
memset(buf,0,257);
- FD_ZERO(&fds);
- FD_SET(fd, &fds);
- ast_select(fd + 1, &fds, NULL, NULL, NULL);
+ fds[0].fd = fd;
+ fds[0].events = POLLIN;
+ poll(fds, 1, -1);
bytes=read(fd,buf,256);
buf[(int)bytes]=0;