From: Cameron Patrick Date: Sun, 1 Aug 2004 08:59:27 +0000 (+0000) Subject: really fix it X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=1de3e93582147de8caa7ae47ef0f0664a585219d;p=zanchey%2Fdispense2.git really fix it --- diff --git a/sql-edition/servers/VendServer.py b/sql-edition/servers/VendServer.py index 02d5f9b..f7bd1cd 100755 --- a/sql-edition/servers/VendServer.py +++ b/sql-edition/servers/VendServer.py @@ -518,15 +518,12 @@ def become_daemon(): os.dup2(fd, 0) os.dup2(fd, 1) os.dup2(fd, 2) - logging.debug('about to fork') try: if os.fork() != 0: - logging.debug('in parent process: dying') sys.exit(0) - logging.debug('back from fork') os.setsid() except OSError, e: - logging.critical('failed to fork: '+e) + raise SystemExit('failed to fork: '+str(e)) def do_vend_server(options, config_opts): while True: