]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Flush the log file after logging each packet (so that if we're going
authorSimon Tatham <anakin@pobox.com>
Thu, 10 Jan 2002 19:50:07 +0000 (19:50 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 10 Jan 2002 19:50:07 +0000 (19:50 +0000)
to crash, we get an up-to-the-minute log of what happened just
before then).

[originally from svn r1543]

logging.c

index 3caa94a46580ebd383ca39568bf49be095e2631f..76dcb950bcd543a7e8973429c933b7c5251c65ea 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -60,6 +60,7 @@ void log_packet(int direction, int type, char *texttype, void *data, int len)
            strcpy(dumpdata + 10+1+3*16+2+j, "\n");
            fputs(dumpdata, lgfp);
        }
+       fflush(lgfp);
     }
 }