Commit 52b91eaf authored by Michel Pelletier's avatar Michel Pelletier

Re-screwed the detaching terminal maddness.

Note: ZServer still prints it's funk on the terminal.
parent 76ea2286
......@@ -105,7 +105,7 @@ TODO
"""
import os, sys, time, signal
import os, sys, time, signal, posix
pyth = sys.executable
......@@ -181,6 +181,12 @@ def run(argv, pidfile=''):
os.environ['ZDAEMON_MANAGED']='TRUE'
while 1:
pid = os.fork()
if pid:
sys.exit(0)
posix.setsid()
lastt=time.time()
try:
pid = forkit()
......
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