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 17:00:46 +11:00
parent 37a5b3cfee
commit 1dc4d731a1
2 changed files with 5 additions and 1 deletions
+3
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
+2 -1
View File
@@ -4104,7 +4104,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,