mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Check for POLLERR, POLLHUP and POLLNVAL for Solaris event ports
This commit is contained in:
parent
e50ba5b61b
commit
353b4ac6c7
6
evport.c
6
evport.c
@ -367,6 +367,12 @@ evport_dispatch(struct event_base *base, void *arg, struct timeval *tv)
|
|||||||
if (pevt->portev_events & POLLOUT)
|
if (pevt->portev_events & POLLOUT)
|
||||||
res |= EV_WRITE;
|
res |= EV_WRITE;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Check for the error situations or a hangup situation
|
||||||
|
*/
|
||||||
|
if (pevt->portev_events & (POLLERR|POLLHUP|POLLNVAL))
|
||||||
|
res |= EV_READ|EV_WRITE;
|
||||||
|
|
||||||
assert(epdp->ed_nevents > fd);
|
assert(epdp->ed_nevents > fd);
|
||||||
fdi = &(epdp->ed_fds[fd]);
|
fdi = &(epdp->ed_fds[fd]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user