[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/56112 CVS commit: src/usr.bin/shlock
The following reply was made to PR bin/56112; it has been noted by GNATS.
From: "Christos Zoulas" <christos%netbsd.org@localhost>
Subject: PR/56112 CVS commit: src/usr.bin/shlock
Date: Fri, 16 Apr 2021 18:41:12 -0400
Module Name: src
Committed By: christos
Date: Fri Apr 16 22:41:12 UTC 2021
PR/56112: Justin Parrott: Don't unlink a lock file without locking it, because
you can have races when multiple processes try to unlink it. Check the link
count to see if we have won the race.
- use snprintf
- use warn
- use size_t/ssize_t
- use loops instead of goto
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/shlock/shlock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Main Index |
Thread Index |