Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

What if somehow the lock is not removed #6

Open
almarklein opened this issue Jul 18, 2018 · 0 comments
Open

What if somehow the lock is not removed #6

almarklein opened this issue Jul 18, 2018 · 0 comments

Comments

@almarklein
Copy link

almarklein commented Jul 18, 2018

If the process somehow fails to remove the lockfile, e.g. because the process (or system) crashes, the lockfile is left in place.

I think that this can be dealt with simply by attempting to remove the lockfile; if the process holding the lock is still alive, this will raise an error, otherwise the lockfile is deleted and the lock can be acquired by the current process. Though perhaps I am missing something? edit: That only works on Windows

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant