mirror of /home/gitosis/repositories/libev.git
handle pollnval
This commit is contained in:
parent
41e8436e69
commit
c68b1f97b9
15
ev_poll.c
15
ev_poll.c
|
@ -94,12 +94,15 @@ poll_poll (EV_P_ ev_tstamp timeout)
|
|||
}
|
||||
|
||||
for (i = 0; i < pollcnt; ++i)
|
||||
fd_event (
|
||||
EV_A_
|
||||
polls [i].fd,
|
||||
(polls [i].revents & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0)
|
||||
| (polls [i].revents & (POLLIN | POLLERR | POLLHUP) ? EV_READ : 0)
|
||||
);
|
||||
if (polls [i].revents & POLLNVAL)
|
||||
fd_kill (EV_A_ polls [i].fd);
|
||||
else
|
||||
fd_event (
|
||||
EV_A_
|
||||
polls [i].fd,
|
||||
(polls [i].revents & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0)
|
||||
| (polls [i].revents & (POLLIN | POLLERR | POLLHUP) ? EV_READ : 0)
|
||||
);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue