win32: flush stderr after log output
authorMaarten Bosmans <mkbosmans@gmail.com>
Mon, 17 Jan 2011 12:17:48 +0000 (13:17 +0100)
committerMaarten Bosmans <mkbosmans@gmail.com>
Thu, 17 Feb 2011 11:02:30 +0000 (12:02 +0100)
src/pulsecore/log.c

index 7ba41ee..2c0e267 100644 (file)
@@ -374,6 +374,9 @@ void pa_log_levelv_meta(
                     fprintf(stderr, "%s%c: %s%s%s%s%s%s\n", timestamp, level_to_char[level], location, prefix, t, grey, pa_strempty(bt), suffix);
                 else
                     fprintf(stderr, "%s%s%s%s%s%s%s\n", timestamp, location, prefix, t, grey, pa_strempty(bt), suffix);
+#ifdef OS_IS_WIN32
+                fflush(stderr);
+#endif
 
                 pa_xfree(local_t);