projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96a04fc
)
To prevent infinite recursion when a lock file has more than 1 hardlink, test for...
author
Zac Medico
<zmedico@gentoo.org>
Mon, 19 Jun 2006 21:28:07 +0000
(21:28 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 19 Jun 2006 21:28:07 +0000
(21:28 -0000)
svn path=/main/trunk/; revision=3540
pym/portage_locks.py
patch
|
blob
|
history
diff --git
a/pym/portage_locks.py
b/pym/portage_locks.py
index 4c7da6d31a77b7a685b3609562c81582582d289f..027399a023a473bc1697578ac13b887b48e21cfa 100644
(file)
--- a/
pym/portage_locks.py
+++ b/
pym/portage_locks.py
@@
-121,7
+121,7
@@
def lockfile(mypath,wantnewlockfile=0,unlinkfile=0):
if type(lockfilename) == types.StringType and \
- myfd != HARDLINK_FD and os.fstat(myfd).st_nlink
!= 1
:
+ myfd != HARDLINK_FD and os.fstat(myfd).st_nlink
== 0
:
# The file was deleted on us... Keep trying to make one...
os.close(myfd)
portage_util.writemsg("lockfile recurse\n",1)