Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/shlock



Module Name:    src
Committed By:   christos
Date:           Fri Apr 16 22:41:12 UTC 2021

Modified Files:
        src/usr.bin/shlock: shlock.c

Log Message:
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.

While here:
- use snprintf
- use warn
- use size_t/ssize_t
- use loops instead of goto
- KNF


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.




Home | Main Index | Thread Index | Old Index