commit | 8aae8b1d610479b22860b75121abbcb3b1d04c76 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Wed Aug 30 10:56:25 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:30 2017 +0100 |
tree | 3dc4b9aa0a4e2a972de14a177193f86354ab7368 | |
parent | 36716a7fec1d84ab4c590dfb038aa30a4ad92b57 [diff] |
MINOR: threads/fd: Process cached events of FDs depending on the process mask
diff --git a/src/fd.c b/src/fd.c index 2621278..58bc863 100644 --- a/src/fd.c +++ b/src/fd.c
@@ -245,6 +245,8 @@ for (entry = 0; entry < fd_cache_num; ) { fd = fd_cache[entry]; + if (!(fdtab[fd].process_mask & tid_bit)) + goto next; if (SPIN_TRYLOCK(FD_LOCK, &fdtab[fd].lock)) goto next;