summaryrefslogtreecommitdiffstats
path: root/jnlib/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'jnlib/logging.c')
-rw-r--r--jnlib/logging.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/jnlib/logging.c b/jnlib/logging.c
index d4418c915..df2ec4463 100644
--- a/jnlib/logging.c
+++ b/jnlib/logging.c
@@ -490,6 +490,10 @@ do_logv (int level, const char *fmt, va_list arg_ptr)
vfprintf(logstream,fmt,arg_ptr) ;
if (*fmt && fmt[strlen(fmt)-1] != '\n')
missing_lf = 1;
+#ifdef HAVE_W32_SYSTEM
+ else
+ fflush (logstream);
+#endif
}
if (level == JNLIB_LOG_FATAL)