From 03559427406878c47087bbc024c106a45fda1e3e Mon Sep 17 00:00:00 2001 From: Olof Hagsand Date: Mon, 30 Jul 2018 18:08:34 +0000 Subject: [PATCH] flush log file --- lib/src/clixon_log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/clixon_log.c b/lib/src/clixon_log.c index 1815c121..589eb796 100644 --- a/lib/src/clixon_log.c +++ b/lib/src/clixon_log.c @@ -240,6 +240,7 @@ clicon_log_str(int level, if ((_logflags & CLICON_LOG_FILE) && _logfile){ flogtime(_logfile); fprintf(_logfile, "%s\n", msg); + fflush(_logfile); } if (_log_notify_cb){ static int cb = 0;