Merge pull request #10 from lx1988cyk/patch-1

Update connection/connection.c
This commit is contained in:
云风
2013-01-23 23:22:10 -08:00

View File

@@ -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);