mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: threads/fd: Process cached events of FDs depending on the process mask
This commit is contained in:
parent
36716a7fec
commit
8aae8b1d61
1 changed files with 2 additions and 0 deletions
2
src/fd.c
2
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue