Explicitly flush stderr in applog()
This commit is contained in:
parent
7e8ce9c8dd
commit
44d4815b01
1 changed files with 1 additions and 0 deletions
1
util.c
1
util.c
|
@ -113,6 +113,7 @@ void applog(int prio, const char *fmt, ...)
|
|||
fmt);
|
||||
pthread_mutex_lock(&applog_lock);
|
||||
vfprintf(stderr, f, ap); /* atomic write to stderr */
|
||||
fflush(stderr);
|
||||
pthread_mutex_unlock(&applog_lock);
|
||||
}
|
||||
va_end(ap);
|
||||
|
|
Loading…
Reference in a new issue