]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: threads/fd: Process cached events of FDs depending on the process mask
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Aug 2017 08:56:25 +0000 (10:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:30 +0000 (13:58 +0100)
src/fd.c

index 262127851c2ba8f4c819d221b555c5256aa07fae..58bc8638194f16f62070c0352b58620d5c655611 100644 (file)
--- a/src/fd.c
+++ b/src/fd.c
@@ -245,6 +245,8 @@ void fd_process_cached_events()
        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;