From: Cameron Patrick Date: Sun, 1 Aug 2004 08:59:27 +0000 (+0000) Subject: really fix it X-Git-Tag: IMPORT-FROM-UCCCVS~70 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=28e0903fea49a38a15d0b1d390c92d2879990238;p=uccvend-vendserver.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: