From 29a49a95ac8e64817d3d9a74fc4025e32b0e5f7f Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Wed, 17 Jan 2024 16:59:31 -0300 Subject: [PATCH] log: correctly close the log pipe (fixes crash on win32). Signed-off-by: Phillip Whelan --- src/flb_log.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/flb_log.c b/src/flb_log.c index 4fd58d77acc..9336821c7fe 100644 --- a/src/flb_log.c +++ b/src/flb_log.c @@ -305,9 +305,7 @@ int flb_log_cache_check_suppress(struct flb_log_cache *cache, char *msg_buf, siz int flb_log_work_destroy(struct flb_worker *worker) { - close(worker->log[0]); - close(worker->log[1]); - + flb_pipe_destroy(worker->log); return 0; }