diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-27 18:13:11 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-27 18:13:11 +0000 |
commit | 0aca2c116cc8e7639edb3df385aa713c19b9b881 (patch) | |
tree | 1afbb7a2845b98a6b6a9ef4f8582529671e6cb10 /asterisk.c | |
parent | 1eabb1cfb5a737476c178de880bd6e0b27c78ab4 (diff) |
More BSD enhancements
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@916 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asterisk.c b/asterisk.c index 9e551a55c..5ee2a4f67 100755 --- a/asterisk.c +++ b/asterisk.c @@ -130,7 +130,7 @@ static void *netconsole(void *vconsole) max = con->fd; if (con->p[0] > max) max = con->p[0]; - res = select(max + 1, &rfds, NULL, NULL, NULL); + res = ast_select(max + 1, &rfds, NULL, NULL, NULL); if (res < 0) { ast_log(LOG_WARNING, "select returned < 0: %s\n", strerror(errno)); continue; @@ -672,7 +672,7 @@ static int ast_el_read_char(EditLine *el, char *cp) max = ast_consock; if (STDIN_FILENO > max) max = STDIN_FILENO; - res = select(max+1, &rfds, NULL, NULL, NULL); + res = ast_select(max+1, &rfds, NULL, NULL, NULL); if (res < 0) { if (errno == EINTR) continue; @@ -1369,7 +1369,7 @@ int main(int argc, char *argv[]) } else { /* Do nothing */ - select(0,NULL,NULL,NULL,NULL); + ast_select(0,NULL,NULL,NULL,NULL); } return 0; } |