summaryrefslogtreecommitdiff
path: root/ev_epoll.c
diff options
context:
space:
mode:
authorroot <root>2007-11-04 19:45:09 +0000
committerroot <root>2007-11-04 19:45:09 +0000
commitc04c7d0577ceddfe470b6fdcaf727ced91a67d1a (patch)
tree7aae857c1b460c6e5c00cdd337adb2fe8d904ed2 /ev_epoll.c
parentf776d56f36abeed4a6091c2ec9b96363213ce2b2 (diff)
*** empty log message ***
Diffstat (limited to 'ev_epoll.c')
-rw-r--r--ev_epoll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ev_epoll.c b/ev_epoll.c
index 8bc8658..bdd746b 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -42,7 +42,8 @@ epoll_modify (EV_P_ int fd, int oev, int nev)
(nev & EV_READ ? EPOLLIN : 0)
| (nev & EV_WRITE ? EPOLLOUT : 0);
- epoll_ctl (epoll_fd, mode, fd, &ev);
+ if (!epoll_ctl (epoll_fd, mode, fd, &ev))
+ fd_kill (EV_A_ fd);
}
static void