call explicit fflush() on stdout

This commit is contained in:
Joris Vink 2021-09-06 14:15:53 +02:00
parent 06991d22d5
commit 00ef837d62
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ log_from_worker(struct kore_msg *msg, const void *data)
if (kore_foreground) {
printf("%s: %.*s\n",
name, (int)wlog->loglen, wlog->logmsg);
fflush(stdout);
} else {
syslog(wlog->prio, "%s: %.*s",
name, (int)wlog->loglen, wlog->logmsg);