Commit bcfb2ab4 authored by Michel Pelletier's avatar Michel Pelletier

Z_DEBUG_MODE now prevents the process from detaching from the controlling...

Z_DEBUG_MODE now prevents the process from detaching from the controlling terminal.  This is most commonly useful by passing z2.py the -D flag.
parent a91ac42f
......@@ -181,11 +181,11 @@ def run(argv, pidfile=''):
os.environ['ZDAEMON_MANAGED']='TRUE'
while 1:
pid = os.fork()
if pid:
sys.exit(0)
posix.setsid()
if not os.environ.has_key('Z_DEBUG_MODE'):
pid = os.fork()
if pid:
sys.exit(0)
posix.setsid()
lastt=time.time()
try:
......
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