Flush every journal entry even when not in debug mode

Somewhat wasteful, but useful in case of a crash.
This commit is contained in:
Markus Armbruster 2008-04-21 20:42:50 +02:00
parent b1a0ff2fbd
commit beb8a7ceb4

View file

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