mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
LOCK_UN before close, not after
This commit is contained in:
parent
fd422488c7
commit
cf32984646
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user