From 133ef989e824dab4c1468681794cbe8d366864e8 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 30 Aug 2016 12:26:50 +1000 Subject: [PATCH] * disable buffering for logfile --- src/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log.c b/src/log.c index 13bbfe3..c5ea11a 100644 --- a/src/log.c +++ b/src/log.c @@ -83,6 +83,7 @@ void f2b_log_to_file(const char *path) { if (path == NULL || *path == '\0') return; if ((new = fopen(path, "a")) != NULL) { + setvbuf(new, NULL , _IONBF, 0); if (logfile && logfile != stderr) fclose(logfile); dest = log_file;