Explicitly flush stderr in applog()

This commit is contained in:
pooler 2013-07-04 15:23:10 +02:00
parent 7e8ce9c8dd
commit 44d4815b01

1
util.c
View file

@ -113,6 +113,7 @@ void applog(int prio, const char *fmt, ...)
fmt); fmt);
pthread_mutex_lock(&applog_lock); pthread_mutex_lock(&applog_lock);
vfprintf(stderr, f, ap); /* atomic write to stderr */ vfprintf(stderr, f, ap); /* atomic write to stderr */
fflush(stderr);
pthread_mutex_unlock(&applog_lock); pthread_mutex_unlock(&applog_lock);
} }
va_end(ap); va_end(ap);