aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-26 03:02:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-26 03:02:49 +0000
commit88adf19dffc1ff442acd6fd16f7990b6fbdc8642 (patch)
treef42052117101b06005792ef797580ab7ba46a2c6 /pbx
parentf292ffbc2756919c88e69b987431a753e4007ef1 (diff)
More select/poll updates for various applications
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2762 f38db490-d61c-443f-a65b-d21fe96a405b
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;