]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: threads: close the thread-waker pipe during deinit
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 11 Sep 2018 08:06:28 +0000 (10:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Sep 2018 08:23:24 +0000 (10:23 +0200)
In order to avoid FD leaking, we close the pipe used to wake the threads
up during per thread deinit.

src/fd.c

index cbb7b478ecb4d68bad8375bad751b3aa4000dddd..1a5419da351da8dc6a4d852f00161a4df1404116 100644 (file)
--- a/src/fd.c
+++ b/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]);
 }
 
 /*