From c80af8bc562dc47e3483f03c969a0117f95c0a65 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 19 Jun 2014 10:43:12 +1000 Subject: [PATCH] Remove file log flushing from within the flock to not delay other code waiting on logging --- src/ckpool.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ckpool.c b/src/ckpool.c index cf26c06f..c617f83c 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -61,7 +61,6 @@ void logmsg(int loglevel, const char *fmt, ...) { if (loglevel <= LOG_ERR && errno != 0) fprintf(LOGFP, " with errno %d: %s", errno, strerror(errno)); fprintf(LOGFP, "\n"); - fflush(LOGFP); flock(logfd, LOCK_UN); } if (loglevel <= LOG_WARNING) {\