--- libev/ev_epoll.c 2007/11/04 15:58:50 1.15 +++ libev/ev_epoll.c 2007/11/04 18:29:44 1.16 @@ -102,11 +102,9 @@ static void epoll_fork (EV_P) { - int fd; - epoll_fd = epoll_create (256); fcntl (epoll_fd, F_SETFD, FD_CLOEXEC); - fd_rearm_all (); + fd_rearm_all (EV_A); }