diff --git a/src/log/log.c b/src/log/log.c index 512c192d..57a274ec 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -84,6 +84,7 @@ int log_open(const char *filename) _release_log_id(log_id); return LOG_ECANTOPEN; } + setvbuf(loglist[log_id].logfile, NULL, _IOLBF, 0); return log_id; }