From: james Date: Mon, 21 Jan 2008 03:33:53 +0000 (+0000) Subject: epoll driver in event.c should be prepared to handle an X-Git-Tag: v2.1_rc5~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd9f2cb7c01bae2aabb6cbb6d80078cbcb5b910c;p=thirdparty%2Fopenvpn.git 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 --- diff --git a/event.c b/event.c index 0d2c0961a..4d82fd3ab 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;