From: William Lallemand Date: Tue, 11 Sep 2018 08:06:28 +0000 (+0200) Subject: MEDIUM: threads: close the thread-waker pipe during deinit X-Git-Tag: v1.9-dev2~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=333d7979cdf2604396cd6a61f8ebc9256e088e9e;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/fd.c b/src/fd.c index cbb7b478ec..1a5419da35 100644 --- 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]); } /*