… | |
… | |
53 | epoll_fd = epoll_create (256); |
53 | epoll_fd = epoll_create (256); |
54 | fcntl (epoll_fd, F_SETFD, FD_CLOEXEC); |
54 | fcntl (epoll_fd, F_SETFD, FD_CLOEXEC); |
55 | |
55 | |
56 | /* re-register interest in fds */ |
56 | /* re-register interest in fds */ |
57 | for (fd = 0; fd < anfdmax; ++fd) |
57 | for (fd = 0; fd < anfdmax; ++fd) |
58 | if (anfds [fd].wev) |
58 | if (anfds [fd].events && !(anfds [fd].events & EV_REIFY))//D |
59 | epoll_modify (fd, EV_NONE, anfds [fd].wev); |
59 | epoll_modify (fd, EV_NONE, anfds [fd].events); |
60 | } |
60 | } |
61 | |
61 | |
62 | static struct epoll_event *events; |
62 | static struct epoll_event *events; |
63 | static int eventmax; |
63 | static int eventmax; |
64 | |
64 | |