Commit cde0e45e authored by Ken Manheimer's avatar Ken Manheimer

main(): Put the parents pid before the child's in the pid file, so the

parent is killed first.  (Otherwise, sometimes - often - a new child
was being spawned before the parent was clobbered, and the zeo server
survived...)
parent b17ac9c0
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
"""Start the server storage. """Start the server storage.
""" """
__version__ = "$Revision: 1.3 $"[11:-2] __version__ = "$Revision: 1.4 $"[11:-2]
import sys, os, getopt, string import sys, os, getopt, string
...@@ -132,7 +132,7 @@ def main(argv): ...@@ -132,7 +132,7 @@ def main(argv):
}, },
) )
open(zeo_pid,'w').write("%s %s" % (os.getpid(), os.getppid())) open(zeo_pid,'w').write("%s %s" % (os.getppid(), os.getpid()))
asyncore.loop() asyncore.loop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment