Skip to content

Commit

Permalink
log: correctly close the log pipe (fixes crash on win32).
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Jan 17, 2024
1 parent 4c722de commit aca761c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/flb_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit aca761c

Please sign in to comment.