(journal_entry): Flush journal if debug is on.

This commit is contained in:
Markus Armbruster 2007-11-15 19:46:04 +00:00
parent b843490799
commit 0649fbbb25

View file

@ -92,6 +92,8 @@ journal_entry(char *fmt, ...)
fprintf(journal, "\\%03o", *p);
}
fputs("\n", journal);
if (debug)
fflush(journal);
if (ferror(journal)) {
logerror("Error writing journal (%s)", strerror(errno));
clearerr(journal);