From 44d4815b01b9477e398334fc5ccde5506ab5141a Mon Sep 17 00:00:00 2001 From: pooler Date: Thu, 4 Jul 2013 15:23:10 +0200 Subject: [PATCH] Explicitly flush stderr in applog() --- util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util.c b/util.c index 151d2d8..794491e 100644 --- a/util.c +++ b/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);