diff options
author | 1996-06-18 11:29:03 +0000 | |
---|---|---|
committer | 1996-06-18 11:29:03 +0000 | |
commit | cf329846469b07365994e4d4cb1eedad2cf1f5c4 (patch) | |
tree | 04eabae5894bb0560d9d362361503d35f6169782 | |
parent | +x68k, mvme68k, mvme88k (diff) | |
download | wireguard-openbsd-cf329846469b07365994e4d4cb1eedad2cf1f5c4.tar.xz wireguard-openbsd-cf329846469b07365994e4d4cb1eedad2cf1f5c4.zip |
LOCK_UN before close, not after
-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 */ |