diff options
-rw-r--r-- | pym/portage/locks.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/locks.py b/pym/portage/locks.py index 00a50b818..1f8f58013 100644 --- a/pym/portage/locks.py +++ b/pym/portage/locks.py @@ -118,6 +118,7 @@ def lockfile(mypath, wantnewlockfile=0, unlinkfile=0, if e.errno in (errno.EACCES, errno.EAGAIN): # resource temp unavailable; eg, someone beat us to the lock. if flags & os.O_NONBLOCK: + os.close(myfd) raise TryAgain(mypath) global _quiet |