Skip to content

Commit

Permalink
Explicitly flush stderr in applog()
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Jul 4, 2013
1 parent 7e8ce9c commit 44d4815
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 44d4815

Please sign in to comment.