diff --git a/daemon/log.c b/daemon/log.c index 3011b3c13..564776204 100644 --- a/daemon/log.c +++ b/daemon/log.c @@ -421,6 +421,7 @@ static void log_to_file(const char *prefix, } else { fprintf(logf, "%s \t%s\n", prefix, str); } + fflush(logf); } static char *arg_log_to_file(const char *arg, struct log *log)