Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/battlestar fflush the score file while signals are blo...
details: https://anonhg.NetBSD.org/src/rev/162e4af4a014
branches: trunk
changeset: 754225:162e4af4a014
user: dholland <dholland%NetBSD.org@localhost>
date: Sat Apr 24 00:38:30 2010 +0000
description:
fflush the score file while signals are blocked to decrease the chance of
it getting corrupted.
diffstat:
games/battlestar/command6.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 3fed0641fbf5 -r 162e4af4a014 games/battlestar/command6.c
--- a/games/battlestar/command6.c Fri Apr 23 23:05:40 2010 +0000
+++ b/games/battlestar/command6.c Sat Apr 24 00:38:30 2010 +0000
@@ -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);
}
Home |
Main Index |
Thread Index |
Old Index