From 22b2a449105d7604f715c1afafeb4fe5ac473f1b Mon Sep 17 00:00:00 2001 From: root Date: Sun, 4 Nov 2007 23:14:11 +0000 Subject: - have to re-check potentially closed fds regularly for epoll. this hurts badly :( - still more than twice as fats as libevent. - many minor fixes --- ev_poll.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ev_poll.c') diff --git a/ev_poll.c b/ev_poll.c index b858b45..b58ce82 100644 --- a/ev_poll.c +++ b/ev_poll.c @@ -42,6 +42,10 @@ static void poll_modify (EV_P_ int fd, int oev, int nev) { int idx; + + if (oev == nev) + return; + array_needsize (pollidxs, pollidxmax, fd + 1, pollidx_init); idx = pollidxs [fd]; -- cgit v1.2.3