From bb3d669c3babc5d6acb6bcd93e7fe65b85f4c878 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 22 Aug 2015 20:59:35 +0200 Subject: Fix epoll with no FDs to watch over --- liberty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liberty.c b/liberty.c index 4b9f78a..65bd3e8 100644 --- a/liberty.c +++ b/liberty.c @@ -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); -- cgit v1.2.3-70-g09d2