Commit c943daf9 authored by Michel Pelletier's avatar Michel Pelletier

Unscrewed detachment maddness

parent 86859419
......@@ -348,22 +348,10 @@ sys.path=[os.path.join(here,'lib','python'),here
import zLOG
if Zpid:
import zdaemon, App.FindHomes, posix
sys.ZMANAGED=1
x = os.fork()
if x:
sys.exit(0)
elif x == -1:
zLOG.LOG("z2", zLOG.ERROR, "couldn't fork to detatch")
sys.exit(1)
pgrp = posix.setsid()
if pgrp == -1:
zLOG.LOG("z2", zLOG.ERROR, "setsid failed")
sys.exit(1)
zdaemon.run(sys.argv, os.path.join(INSTANCE_HOME, Zpid))
# Import Zope (or Main), and thus get SOFTWARE_HOME and INSTANCE_HOME
......
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