mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 14:49:45 -04:00
MEDIUM: threads: close the thread-waker pipe during deinit
In order to avoid FD leaking, we close the pipe used to wake the threads up during per thread deinit.
This commit is contained in:
parent
e22f11ff47
commit
333d7979cd
1 changed files with 2 additions and 0 deletions
2
src/fd.c
2
src/fd.c
|
|
@ -497,6 +497,8 @@ static void deinit_pollers_per_thread()
|
|||
{
|
||||
free(fd_updt);
|
||||
fd_updt = NULL;
|
||||
close(poller_rd_pipe);
|
||||
close(poller_wr_pipe[tid]);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue