flush the logfile after each print (if LOG_FLUSH enabled)

This commit is contained in:
Enno Rehling 2004-04-12 10:26:01 +00:00
parent 6681a76268
commit 618bb6363a
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ log_printf(const char * format, ...)
va_start(marker, format); va_start(marker, format);
vfprintf(logfile, format, marker); vfprintf(logfile, format, marker);
va_end(marker); va_end(marker);
if (flags & LOG_FLUSH) {
fflush(logfile);
}
} }
void void