Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
fix lock
Browse files Browse the repository at this point in the history
  • Loading branch information
iopapamanoglou committed Nov 7, 2024
1 parent ab0a597 commit 412554c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/faebryk/libs/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ def global_lock(lock_file_path: Path, timeout_s: float | None = None):
try:
pid = int(lock_file_path.read_text())
except ValueError:
lock_file_path.unlink()
lock_file_path.unlink(missing_ok=True)
continue
assert pid != os.getpid()
if not psutil.pid_exists(pid):
Expand Down

0 comments on commit 412554c

Please sign in to comment.