More BSD enhancements

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-04-27 18:13:11 +00:00
parent b9d6efa20e
commit 6eeee2496b
29 changed files with 216 additions and 155 deletions

View File

@@ -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;
}