Understanding lockfile compromise and limitations
masterWhat is a compromised lock?
proper-lockfile detects if the lock is compromised when:
- Updates to the lockfile
mtimefail. - Updates take longer than expected.
Limitations (What is NOT detected)
proper-lockfile cannot detect:
- If a lockfile was manually deleted and a new lock was acquired immediately after.
- If different
staleorupdatevalues are being used for the same file by different processes (which can lead to multiple locks on the same file).