(journal_entry): Flush journal if debug is on.
This commit is contained in:
parent
b843490799
commit
0649fbbb25
1 changed files with 3 additions and 1 deletions
|
@ -92,6 +92,8 @@ journal_entry(char *fmt, ...)
|
||||||
fprintf(journal, "\\%03o", *p);
|
fprintf(journal, "\\%03o", *p);
|
||||||
}
|
}
|
||||||
fputs("\n", journal);
|
fputs("\n", journal);
|
||||||
|
if (debug)
|
||||||
|
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