mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
More BSD enhancements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
12
channel.c
12
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++)
|
||||
|
||||
Reference in New Issue
Block a user