summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage_locks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage_locks.py b/pym/portage_locks.py
index f108cba2e..9f4bdaa34 100644
--- a/pym/portage_locks.py
+++ b/pym/portage_locks.py
@@ -122,7 +122,8 @@ def lockfile(mypath,wantnewlockfile=0,unlinkfile=0):
raise
- if type(lockfilename) == types.StringType and os.fstat(myfd).st_nlink != 1:
+ if type(lockfilename) == types.StringType and \
+ myfd != HARDLINK_FD and os.fstat(myfd).st_nlink != 1:
# The file was deleted on us... Keep trying to make one...
os.close(myfd)
portage_util.writemsg("lockfile recurse\n",1)