summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-12-08 09:49:12 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-12-08 09:49:12 +0000
commite2374e94ac236f35b19dd94db6de62123ae23e70 (patch)
tree6d09c9830ffb606a2735c6e5127eaab2889b0857 /init.c
parent79f33c0fd827e8df431f0fcbf2c9c86e1807cc19 (diff)
Make the debug file access unbuffered. Important if we are
debugging crashes.
Diffstat (limited to 'init.c')
-rw-r--r--init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.c b/init.c
index 1563b326..a25f388f 100644
--- a/init.c
+++ b/init.c
@@ -1474,6 +1474,7 @@ static void start_debug (void)
if ((debugfile = safe_fopen(buf, "w")) != NULL)
{
t = time (0);
+ setbuf (debugfile, NULL); /* don't buffer the debugging output! */
fprintf (debugfile, "Mutt %s started at %s.\nDebugging at level %d.\n\n",
MUTT_VERSION, asctime (localtime (&t)), debuglevel);
}