[yum-cvs] yum/yum __init__.py,1.216,1.217
Jeremy Katz
katzj at linux.duke.edu
Wed Jul 12 18:30:51 UTC 2006
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv13842/yum
Modified Files:
__init__.py
Log Message:
if we already have the lock file, trying to get it again is fine
Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.216
retrieving revision 1.217
diff -u -r1.216 -r1.217
--- __init__.py 12 Jul 2006 04:04:56 -0000 1.216
+++ __init__.py 12 Jul 2006 18:30:49 -0000 1.217
@@ -524,6 +524,8 @@
# bogus data in the pid file. Throw away.
self._unlock(lockfile)
else:
+ if oldpid == os.getpid(): # if we own the lock, we're fine
+ return
try: os.kill(oldpid, 0)
except OSError, e:
if e[0] == errno.ESRCH:
More information about the Yum-cvs-commits
mailing list