mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-12 02:12:15 -04:00
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:
parent
b19bdf671c
commit
dd9f2cb7c0
1 changed files with 1 additions and 1 deletions
2
event.c
2
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue