summaryrefslogtreecommitdiff
path: root/ev_epoll.c
diff options
context:
space:
mode:
authorroot <root>2007-10-31 22:16:36 +0000
committerroot <root>2007-10-31 22:16:36 +0000
commit2286b0bd1148eb87826698f86c8224f93ff502cd (patch)
tree64a6bde9fded05f26ffc7b0dda01927cb0f295e8 /ev_epoll.c
parent8ee1afd13859937076f9a9ff5e3420d3304f524e (diff)
only add fds to fdchangeset one
Diffstat (limited to 'ev_epoll.c')
-rw-r--r--ev_epoll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev_epoll.c b/ev_epoll.c
index 92587c2..d03f8a5 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -55,8 +55,8 @@ epoll_postfork_child (void)
/* re-register interest in fds */
for (fd = 0; fd < anfdmax; ++fd)
- if (anfds [fd].wev)
- epoll_modify (fd, EV_NONE, anfds [fd].wev);
+ if (anfds [fd].events && !(anfds [fd].events & EV_REIFY))//D
+ epoll_modify (fd, EV_NONE, anfds [fd].events);
}
static struct epoll_event *events;