From 61e8c46ee5070cd7d8f853962cf7348bdbd13426 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Wed, 9 Jul 2014 10:02:00 +0300 Subject: [PATCH] Don't fclose the log file on cleanup in case we still send mesages to the log file. The OS will close it on shutdown anyway. --- src/ckpool.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ckpool.c b/src/ckpool.c index 0e301b4c..fc3dd3a4 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -662,7 +662,6 @@ static void clean_up(ckpool_t *ckp) for (i = 0; i < children; i++) dealloc(ckp->children[i]); dealloc(ckp->children); - fclose(ckp->logfp); } static void __shutdown_children(ckpool_t *ckp, int sig)