diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-18 11:29:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-18 11:29:04 +0000 |
commit | 2ad5de3f82dc355fd7adf5a122ada9a05e8a9ad2 (patch) | |
tree | c89a08ebe3cb4fe2ed9defe90fae716073d0260e /games/dm/dm.c | |
parent | bc57eb432333ebd5ebaa445d0d15dadeefdd5865 (diff) |
LOCK_UN before close, not after
Diffstat (limited to 'games/dm/dm.c')
-rw-r--r-- | games/dm/dm.c | 2 |
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 */ |