4528. [bug] Only set the flag bits for the i/o we are waiting

for on EPOLLERR or EPOLLHUP. [RT #43617]

(cherry picked from commit c1619b8420)
This commit is contained in:
Mark Andrews 2016-12-08 16:59:46 +11:00
parent 45cd9d8bcd
commit 87dbe24a4f
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,6 @@
4528. [bug] Only set the flag bits for the i/o we are waiting
for on EPOLLERR or EPOLLHUP. [RT #43617]
4527. [doc] Support DocBook XSL Stylesheets v1.79.1. [RT #43831]
4526. [doc] Corrected errors and improved formatting of

View file

@ -3774,7 +3774,8 @@ process_fds(isc__socketmgr_t *manager, struct epoll_event *events, int nevents)
* events. Note also that the read or write attempt
* won't block because we use non-blocking sockets.
*/
events[i].events |= (EPOLLIN | EPOLLOUT);
int fd = events[i].data.fd;
events[i].events |= manager->epoll_events[fd];
}
process_fd(manager, events[i].data.fd,
(events[i].events & EPOLLIN) != 0,