Module Name: src
Committed By: dholland
Date: Sat Apr 24 00:38:30 UTC 2010
Modified Files:
src/games/battlestar: command6.c
Log Message:
fflush the score file while signals are blocked to decrease the chance of
it getting corrupted.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/games/battlestar/command6.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/battlestar/command6.c
diff -u src/games/battlestar/command6.c:1.7 src/games/battlestar/command6.c:1.8
--- src/games/battlestar/command6.c:1.7 Fri Apr 2 19:34:44 2010
+++ src/games/battlestar/command6.c Sat Apr 24 00:38:30 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: command6.c,v 1.7 2010/04/02 19:34:44 christos Exp $ */
+/* $NetBSD: command6.c,v 1.8 2010/04/24 00:38:30 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: command6.c,v 1.7 2010/04/02 19:34:44 christos Exp $");
+__RCSID("$NetBSD: command6.c,v 1.8 2010/04/24 00:38:30 dholland Exp $");
#endif
#endif /* not lint */
@@ -137,6 +137,7 @@
else
fprintf(score_fp, "\n");
}
+ fflush(score_fp);
sigprocmask(SIG_SETMASK, &osigset, (sigset_t *) 0);
}