aboutsummaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-01-21 03:33:53 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-01-21 03:33:53 +0000
commitdd9f2cb7c01bae2aabb6cbb6d80078cbcb5b910c (patch)
tree09c56820d30608006dfeb6d2e74b60f7c21ef3b3 /event.c
parentFixed interim memory growth issue in TCP connect loop where (diff)
downloadopenvpn-dd9f2cb7c01bae2aabb6cbb6d80078cbcb5b910c.tar.xz
epoll driver in event.c should be prepared to handle an
EPOLLHUP event in the same way as it handles EPOLLIN, EPOLLPRI, or EPOLLERR events. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2634 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'event.c')
-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;