mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
Merge pull request #10 from lx1988cyk/patch-1
Update connection/connection.c
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user