summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix/log.c')
-rw-r--r--sysdep/unix/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c
index b4a028d..fa2902e 100644
--- a/sysdep/unix/log.c
+++ b/sysdep/unix/log.c
@@ -184,4 +184,6 @@ log_init_debug(char *f)
dbgf = stderr;
else if (!(dbgf = fopen(f, "a")))
log(L_ERR "Error opening debug file `%s': %m", f);
+ if (dbgf)
+ setvbuf(dbgf, NULL, _IONBF, 0);
}