Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: third_party/libevent/epoll.c

Issue 112089: Linux: fix libevent bug. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libevent/epoll.c
diff --git a/third_party/libevent/epoll.c b/third_party/libevent/epoll.c
index bfb3140eca5e8b8a908f307e7b3fae8722104300..0e70466f64035eee13b6660f70dabc87a2e61877 100644
--- a/third_party/libevent/epoll.c
+++ b/third_party/libevent/epoll.c
@@ -171,7 +171,7 @@ epoll_recalc(struct event_base *base, void *arg, int max)
int nfds;
nfds = epollop->nfds;
- while (nfds < max)
+ while (nfds <= max)
agl 2009/06/02 23:18:14 |max| is an index into fds which needs to be valid
nfds <<= 1;
fds = realloc(epollop->fds, nfds * sizeof(struct evepoll));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698