Fix epoll with no FDs to watch over

This commit is contained in:
Přemysl Eric Janouch 2015-08-22 20:59:35 +02:00
parent ee2457df7c
commit bb3d669c3b
1 changed files with 1 additions and 1 deletions

View File

@ -1421,7 +1421,7 @@ poller_run (struct poller *self)
int n_fds;
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));
while (n_fds == -1 && errno == EINTR);