[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - __init__.py:1.10
Chris McDonough
chrism@zope.com
Mon, 21 Jul 2003 10:54:18 -0400
Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv839/lib/python/Zope/Startup
Modified Files:
__init__.py
Log Message:
Write pid into lockfile.
=== Zope/lib/python/Zope/Startup/__init__.py 1.9 => 1.10 ===
--- Zope/lib/python/Zope/Startup/__init__.py:1.9 Sat Jul 19 22:56:14 2003
+++ Zope/lib/python/Zope/Startup/__init__.py Mon Jul 21 10:54:13 2003
@@ -117,6 +117,8 @@
os.unlink(lock_filename)
LOCK_FILE = open(lock_filename, 'w')
lock_file(LOCK_FILE)
+ LOCK_FILE.write(str(os.getpid()))
+ LOCK_FILE.flush()
except IOError:
pass