Browse code

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

james authored on 2008/01/21 12:33:53
Showing 1 changed files
... ...
@@ -555,7 +555,7 @@ ep_wait (struct event_set *es, const struct timeval *tv, struct event_set_return
555 555
       for (i = 0; i < stat; ++i)
556 556
 	{
557 557
 	  esr->rwflags = 0;
558
-	  if (ev->events & (EPOLLIN|EPOLLPRI|EPOLLERR))
558
+	  if (ev->events & (EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP))
559 559
 	    esr->rwflags |= EVENT_READ;
560 560
 	  if (ev->events & EPOLLOUT)
561 561
 	    esr->rwflags |= EVENT_WRITE;