diff options
Diffstat (limited to 'third_party/libevent')
-rw-r--r-- | third_party/libevent/epoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/libevent/epoll.c b/third_party/libevent/epoll.c index e9eacfb..eb52fda 100644 --- a/third_party/libevent/epoll.c +++ b/third_party/libevent/epoll.c @@ -161,7 +161,7 @@ epoll_recalc(struct event_base *base, void *arg, int max) int nfds; nfds = epollop->nfds; - while (nfds < max) + while (nfds <= max) nfds <<= 1; fds = realloc(epollop->fds, nfds * sizeof(struct evepoll)); |