From: Christopher Faulet Date: Wed, 30 Aug 2017 08:56:25 +0000 (+0200) Subject: MINOR: threads/fd: Process cached events of FDs depending on the process mask X-Git-Tag: v1.8-rc1~153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8aae8b1d610479b22860b75121abbcb3b1d04c76;p=thirdparty%2Fhaproxy.git MINOR: threads/fd: Process cached events of FDs depending on the process mask --- diff --git a/src/fd.c b/src/fd.c index 262127851c..58bc863819 100644 --- 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;