summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-18 11:29:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-18 11:29:04 +0000
commit2ad5de3f82dc355fd7adf5a122ada9a05e8a9ad2 (patch)
treec89a08ebe3cb4fe2ed9defe90fae716073d0260e /games
parentbc57eb432333ebd5ebaa445d0d15dadeefdd5865 (diff)
LOCK_UN before close, not after
Diffstat (limited to 'games')
-rw-r--r--games/dm/dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/dm/dm.c b/games/dm/dm.c
index 69797ade005..690b0c62fa0 100644
--- a/games/dm/dm.c
+++ b/games/dm/dm.c
@@ -328,8 +328,8 @@ logfile()
else
fprintf(lp, "%u", uid);
fprintf(lp, "\t%s\t%s\t%s", game, gametty, ctime(&now));
- (void)fclose(lp);
(void)flock(fileno(lp), LOCK_UN);
+ (void)fclose(lp);
}
}
#endif /* LOG */