Flush every journal entry even when not in debug mode
Somewhat wasteful, but useful in case of a crash.
This commit is contained in:
parent
b1a0ff2fbd
commit
beb8a7ceb4
1 changed files with 1 additions and 2 deletions
|
@ -93,8 +93,7 @@ journal_entry(char *fmt, ...)
|
||||||
fprintf(journal, "\\%03o", *p);
|
fprintf(journal, "\\%03o", *p);
|
||||||
}
|
}
|
||||||
fputs("\n", journal);
|
fputs("\n", journal);
|
||||||
if (debug)
|
fflush(journal);
|
||||||
fflush(journal);
|
|
||||||
if (ferror(journal)) {
|
if (ferror(journal)) {
|
||||||
logerror("Error writing journal (%s)", strerror(errno));
|
logerror("Error writing journal (%s)", strerror(errno));
|
||||||
clearerr(journal);
|
clearerr(journal);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue