X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/fc96409f9193a7fda1dd509d16769272453f36c0..06851a93de54c4d9bb0a6c52234ef5bb3db07d96:/src/ae_epoll.c?ds=sidebyside diff --git a/src/ae_epoll.c b/src/ae_epoll.c index cac10d67..0231f243 100644 --- a/src/ae_epoll.c +++ b/src/ae_epoll.c @@ -89,6 +89,8 @@ static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) { if (e->events & EPOLLIN) mask |= AE_READABLE; if (e->events & EPOLLOUT) mask |= AE_WRITABLE; + if (e->events & EPOLLERR) mask |= AE_WRITABLE; + if (e->events & EPOLLHUP) mask |= AE_WRITABLE; eventLoop->fired[j].fd = e->data.fd; eventLoop->fired[j].mask = mask; }