1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-26 16:04:06 +00:00

bugfix: thread id must be parsed as hex from lock file name

This commit is contained in:
Thomas Waldmann 2023-01-13 21:19:47 +01:00
parent ca1f1281d5
commit 163e92dd04
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -197,7 +197,7 @@ def kill_stale_lock(self):
host_pid, thread_str = name.rsplit("-", 1)
host, pid_str = host_pid.rsplit(".", 1)
pid = int(pid_str)
thread = int(thread_str)
thread = int(thread_str, 16)
except ValueError:
# Malformed lock name? Or just some new format we don't understand?
logger.error("Found malformed lock %s in %s. Please check/fix manually.", name, self.path)