summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-04-27 18:13:11 +0000
committerMark Spencer <markster@digium.com>2003-04-27 18:13:11 +0000
commit6eeee2496b58beb4672cbaf572cb937826f7e50f (patch)
tree1afbb7a2845b98a6b6a9ef4f8582529671e6cb10 /channel.c
parentb9d6efa20ec9b24c2f670f023434809532b07a50 (diff)
More BSD enhancements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/channel.c b/channel.c
index 52130a879..40f73b843 100755
--- a/channel.c
+++ b/channel.c
@@ -756,10 +756,10 @@ int ast_waitfor_n_fd(int *fds, int n, int *ms, int *exception)
max = fds[x];
}
}
- if (*ms >= 0)
- res = select(max + 1, &rfds, NULL, &efds, &tv);
+ if (*ms >= 0)
+ res = ast_select(max + 1, &rfds, NULL, &efds, &tv);
else
- res = select(max + 1, &rfds, NULL, &efds, NULL);
+ res = ast_select(max + 1, &rfds, NULL, &efds, NULL);
if (res < 0) {
/* Simulate a timeout if we were interrupted */
@@ -828,10 +828,10 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds,
if (fds[x] > max)
max = fds[x];
}
- if (*ms >= 0)
- res = select(max + 1, &rfds, NULL, &efds, &tv);
+ if (*ms >= 0)
+ res = ast_select(max + 1, &rfds, NULL, &efds, &tv);
else
- res = select(max + 1, &rfds, NULL, &efds, NULL);
+ res = ast_select(max + 1, &rfds, NULL, &efds, NULL);
if (res < 0) {
for (x=0;x<n;x++)