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
This commit is contained in:
james 2008-01-21 03:33:53 +00:00
parent b19bdf671c
commit dd9f2cb7c0

View file

@ -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;