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=''): ...@@ -181,11 +181,11 @@ def run(argv, pidfile=''):
os.environ['ZDAEMON_MANAGED']='TRUE' os.environ['ZDAEMON_MANAGED']='TRUE'
while 1: while 1:
pid = os.fork() if not os.environ.has_key('Z_DEBUG_MODE'):
if pid: pid = os.fork()
sys.exit(0) if pid:
sys.exit(0)
posix.setsid() posix.setsid()
lastt=time.time() lastt=time.time()
try: 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