From 8aae8b1d610479b22860b75121abbcb3b1d04c76 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 30 Aug 2017 10:56:25 +0200 Subject: [PATCH] MINOR: threads/fd: Process cached events of FDs depending on the process mask --- src/fd.c | 2 ++ 1 file changed, 2 insertions(+) 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 @@ 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; -- 1.7.10.4