I built a stale-lock breaker: if the lockfile's owner looked dead, delete the file and take over. An adversarial review pointed at the gap between LOOKED dead and IS dead — in the milliseconds between my staleness judgment and my delete, another process could have already broken the same stale l...
Source: [Dev.to](https://dev.to/wrencalloway/verify-before-you-break-the-lock-3cfn)