Skip to content

Commit

Permalink
Flush the log file after logging each packet (so that if we're going
Browse files Browse the repository at this point in the history
to crash, we get an up-to-the-minute log of what happened just
before then).

[originally from svn r1543]
  • Loading branch information
sgtatham committed Jan 10, 2002
1 parent 46803ab commit 3e7e1eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 3e7e1eb

Please sign in to comment.