Index: eloop.c ================================================================== --- eloop.c +++ eloop.c @@ -393,11 +393,11 @@ } /* Process any triggered events. */ if (n > 0) { TAILQ_FOREACH(e, &ctx->events, next) { - if (e->pollfd->revents & (POLLIN | POLLHUP)) { + if (e->pollfd->revents) { e->callback(e->arg); /* We need to break here as the * callback could destroy the next * fd to process. */ break;