X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/404223547c2b3f7eef0295cf22be4bfdbc63846a..f1466e11cd1c2c41f01e505e54f465d0eb4b4f42:/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;