mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
fix poll hup support
svn:r82
This commit is contained in:
parent
ec70653b61
commit
f08bf5325e
6
poll.c
6
poll.c
@ -197,9 +197,9 @@ poll_dispatch(void *arg, struct timeval *tv)
|
||||
if (pop->event_set[i].revents & POLLHUP)
|
||||
pop->event_set[i].revents = POLLIN|POLLOUT;
|
||||
if (pop->event_set[i].revents & POLLIN)
|
||||
res = EV_READ;
|
||||
else if (pop->event_set[i].revents & POLLOUT)
|
||||
res = EV_WRITE;
|
||||
res |= EV_READ;
|
||||
if (pop->event_set[i].revents & POLLOUT)
|
||||
res |= EV_WRITE;
|
||||
if (res == 0)
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user