X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/2aa1efb8a5bba003e94604514fbccea8115ca90d..e47236d8d4f011516e10e51a95ea4620b1e10f54:/src/ae.c diff --git a/src/ae.c b/src/ae.c index c58c4b74..ba53b456 100644 --- a/src/ae.c +++ b/src/ae.c @@ -385,6 +385,8 @@ int aeWait(int fd, int mask, long long milliseconds) { if ((retval = poll(&pfd, 1, milliseconds))== 1) { if (pfd.revents & POLLIN) retmask |= AE_READABLE; if (pfd.revents & POLLOUT) retmask |= AE_WRITABLE; + if (pfd.revents & POLLERR) retmask |= AE_WRITABLE; + if (pfd.revents & POLLHUP) retmask |= AE_WRITABLE; return retmask; } else { return retval;