1
0
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:
deraadt 1996-06-18 11:29:03 +00:00
parent fd422488c7
commit cf32984646

View File

@ -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 */