1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 08:45:13 +00:00

Fix py3.2 specific EDEADLK related bug.

This commit is contained in:
Jonas Borgström 2014-05-31 15:13:49 +02:00
parent 3ab53b776d
commit 9178d76ce7
2 changed files with 3 additions and 1 deletions

View file

@ -16,6 +16,7 @@ Version 0.13
- Added cachedir support. CACHEDIR.TAG compatible cache directories
can now be excluded using ``--exclude-caches`` (#74)
- Fix crash on extreme mtime timestamps (year 2400+) (#81)
- Fix Python 3.2 specific lockf issue (EDEADLK)
Version 0.12
------------

View file

@ -51,7 +51,8 @@ def __init__(self, path, exclusive=False):
def upgrade(self):
try:
fcntl.lockf(self.fd, fcntl.LOCK_EX)
except OSError as e:
# Python 3.2 raises IOError, Python3.3+ raises OSError
except (OSError):
raise self.LockUpgradeFailed(self.path)
self.is_exclusive = True