diff --git a/connection/connection.c b/connection/connection.c index 889950c8..21d31352 100644 --- a/connection/connection.c +++ b/connection/connection.c @@ -101,7 +101,8 @@ connection_add(struct connection_pool * pool, int fd, void *ud) { void connection_del(struct connection_pool * pool, int fd) { #if HAVE_EPOLL - epoll_ctl(pool->epoll_fd, EPOLL_CTL_DEL, fd , NULL); + struct epoll_event ev; + epoll_ctl(pool->epoll_fd, EPOLL_CTL_DEL, fd , &ev); #elif HAVE_KQUEUE struct kevent ke; EV_SET(&ke, fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);