commit | 63e2ce61a84670ea46637fb7026fde0b6af9372b | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Fri Jun 02 14:36:39 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:30 2017 +0100 |
tree | 2581179e87f02e9eefb19c61879b050fb55e6f6e | |
parent | 8aae8b1d610479b22860b75121abbcb3b1d04c76 [diff] [blame] |
MINOR: threads/polling: pollers now handle FDs depending on the process mask
diff --git a/src/ev_poll.c b/src/ev_poll.c index e16968b..455c4e1 100644 --- a/src/ev_poll.c +++ b/src/ev_poll.c
@@ -111,6 +111,10 @@ continue; for (count = 0, fd = fds * 8*sizeof(**fd_evts); count < 8*sizeof(**fd_evts) && fd < maxfd; count++, fd++) { + + if (!fdtab[fd].owner || !(fdtab[fd].process_mask & tid_bit)) + continue; + sr = (rn >> count) & 1; sw = (wn >> count) & 1; if ((sr|sw)) {