From 333d7979cdf2604396cd6a61f8ebc9256e088e9e Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Tue, 11 Sep 2018 10:06:28 +0200 Subject: [PATCH] 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. --- src/fd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fd.c b/src/fd.c index cbb7b478e..1a5419da3 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]); } /*