Fix epoll with no FDs to watch over
This commit is contained in:
parent
ee2457df7c
commit
bb3d669c3b
@ -1421,7 +1421,7 @@ poller_run (struct poller *self)
|
|||||||
|
|
||||||
int n_fds;
|
int n_fds;
|
||||||
do
|
do
|
||||||
n_fds = epoll_wait (self->epoll_fd, self->revents, self->len,
|
n_fds = epoll_wait (self->epoll_fd, self->revents, self->alloc,
|
||||||
self->idle ? 0 : poller_timers_get_poll_timeout (&self->timers));
|
self->idle ? 0 : poller_timers_get_poll_timeout (&self->timers));
|
||||||
while (n_fds == -1 && errno == EINTR);
|
while (n_fds == -1 && errno == EINTR);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user