diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-01-21 03:33:53 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-01-21 03:33:53 +0000 |
commit | dd9f2cb7c01bae2aabb6cbb6d80078cbcb5b910c (patch) | |
tree | 09c56820d30608006dfeb6d2e74b60f7c21ef3b3 /event.c | |
parent | Fixed interim memory growth issue in TCP connect loop where (diff) | |
download | openvpn-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |