]> git.ipfire.org Git - thirdparty/ccache.git/commit
Simplify lock breaking
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 6 Mar 2020 18:31:15 +0000 (19:31 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 10 Mar 2020 18:58:21 +0000 (19:58 +0100)
commitc468acbf200a5352ac34f798107241d49500d533
treeeb2516dca55a96246031b0ec5df52b99c9a68ee8
parent01de3d5c703407d658c5adcd753d4fc5da89ba3d
Simplify lock breaking

Acquiring a .lock.lock file does not make lock breaking significantly
safer; there is still a race condition. Simplify it by simply deleting
the lockfile when breaking and try to acquire it again.
src/lockfile.cpp
unittest/test_lockfile.cpp