aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-08-22 20:59:35 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-08-22 20:59:35 +0200
commitbb3d669c3babc5d6acb6bcd93e7fe65b85f4c878 (patch)
treec6b23e6682a28db90e8d1c9a1b7091b2a12130d7
parentee2457df7c762f379a4cd3e434d99294aa68387c (diff)
downloadliberty-bb3d669c3babc5d6acb6bcd93e7fe65b85f4c878.tar.gz
liberty-bb3d669c3babc5d6acb6bcd93e7fe65b85f4c878.tar.xz
liberty-bb3d669c3babc5d6acb6bcd93e7fe65b85f4c878.zip
Fix epoll with no FDs to watch over
-rw-r--r--liberty.c2
1 files changed, 1 insertions, 1 deletions
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);