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;