diff options
author | root <root> | 2009-11-24 06:37:23 +0000 |
---|---|---|
committer | root <root> | 2009-11-24 06:37:23 +0000 |
commit | 079ffff0acc5dad3ef0389e25df1e59ce12f6cb5 (patch) | |
tree | 52339e9cc7463230bc90cf02762936842ae4dd20 /ev_epoll.c | |
parent | b9a29c2dac5c8a652cedcf232a780ba9da8df57e (diff) |
*** empty log message ***
Diffstat (limited to 'ev_epoll.c')
-rw-r--r-- | ev_epoll.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -161,6 +161,8 @@ epoll_poll (EV_P_ ev_tstamp timeout) ev->events = (want & EV_READ ? EPOLLIN : 0) | (want & EV_WRITE ? EPOLLOUT : 0); + /* pre-2.6.9 kernels require a non-null pointer with EPOLL_CTL_DEL, */ + /* which is fortunately easy to do for us. */ if (epoll_ctl (backend_fd, want ? EPOLL_CTL_MOD : EPOLL_CTL_DEL, fd, ev)) { postfork = 1; /* an error occured, recreate kernel state */ |