summary refs log tree commit diff
path: root/nscd/dbg_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/dbg_log.c')
-rw-r--r--nscd/dbg_log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nscd/dbg_log.c b/nscd/dbg_log.c
index 37065e446e..b2b8b3e31c 100644
--- a/nscd/dbg_log.c
+++ b/nscd/dbg_log.c
@@ -51,7 +51,10 @@ dbg_log (const char *fmt,...)
     {
       snprintf (msg, sizeof (msg), "%d: %s\n", getpid (), msg2);
       if (dbgout)
-	fputs (msg, dbgout);
+	{
+	  fputs (msg, dbgout);
+	  fflush (dbgout);
+	}
       else
 	fputs (msg, stderr);
     }