summaryrefslogtreecommitdiff
path: root/ev_select.c
diff options
context:
space:
mode:
authorroot <root>2007-11-04 23:14:11 +0000
committerroot <root>2007-11-04 23:14:11 +0000
commit22b2a449105d7604f715c1afafeb4fe5ac473f1b (patch)
treeb18e0643b0b285e16de1ac4641e5aecdc59c1bec /ev_select.c
parentfbe9562600fa8735c078401aa604b49a5426b0e2 (diff)
- have to re-check potentially closed fds regularly for epoll. this hurts
badly :( - still more than twice as fats as libevent. - many minor fixes
Diffstat (limited to 'ev_select.c')
-rw-r--r--ev_select.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ev_select.c b/ev_select.c
index 327c313..9f81e55 100644
--- a/ev_select.c
+++ b/ev_select.c
@@ -48,6 +48,9 @@ select_modify (EV_P_ int fd, int oev, int nev)
int offs = fd >> 3;
int mask = 1 << (fd & 7);
+ if (oev == nev)
+ return;
+
if (vec_max < (fd >> 5) + 1)
{
int new_max = (fd >> 5) + 1;