os: replace select with poll

Select has limitations on the fd values it could accept and silently
breaks when it is reached.
This commit is contained in:
Luca Barbato
2011-01-28 03:12:21 +01:00
parent 5ce5dbc5f3
commit a8475bbdb6
8 changed files with 73 additions and 110 deletions

View File

@@ -236,7 +236,6 @@ int ff_socket_nonblock(int socket, int enable)
}
#endif /* CONFIG_NETWORK */
#if CONFIG_FFSERVER
#if !HAVE_POLL_H
int poll(struct pollfd *fds, nfds_t numfds, int timeout)
{
@@ -305,5 +304,3 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
return rc;
}
#endif /* HAVE_POLL_H */
#endif /* CONFIG_FFSERVER */