Added use of fflush() to log_log()

This commit is contained in:
rxi 2018-07-21 09:45:43 +01:00
parent b7414f3468
commit 783d481e07

View File

@ -115,6 +115,7 @@ void log_log(int level, const char *file, int line, const char *fmt, ...) {
vfprintf(stderr, fmt, args);
va_end(args);
fprintf(stderr, "\n");
fflush(stderr);
}
/* Log to file */
@ -127,6 +128,7 @@ void log_log(int level, const char *file, int line, const char *fmt, ...) {
vfprintf(L.fp, fmt, args);
va_end(args);
fprintf(L.fp, "\n");
fflush(L.fp);
}
/* Release lock */