summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index 0d2c096..4d82fd3 100644
--- a/event.c
+++ b/event.c
@@ -555,7 +555,7 @@ ep_wait (struct event_set *es, const struct timeval *tv, struct event_set_return
for (i = 0; i < stat; ++i)
{
esr->rwflags = 0;
- if (ev->events & (EPOLLIN|EPOLLPRI|EPOLLERR))
+ if (ev->events & (EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP))
esr->rwflags |= EVENT_READ;
if (ev->events & EPOLLOUT)
esr->rwflags |= EVENT_WRITE;