]> granicus.if.org Git - mutt/commitdiff
Make the debug file access unbuffered. Important if we are
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 8 Dec 1998 09:49:12 +0000 (09:49 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 8 Dec 1998 09:49:12 +0000 (09:49 +0000)
debugging crashes.

init.c

diff --git a/init.c b/init.c
index 1563b3269141be5fcdd3e28f554991d710a5fb8b..a25f388f38851f863251c62ed14778fa58fc1bd3 100644 (file)
--- 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);
   }