really fix it
authorCameron Patrick <[email protected]>
Sun, 1 Aug 2004 08:59:27 +0000 (08:59 +0000)
committerCameron Patrick <[email protected]>
Sun, 1 Aug 2004 08:59:27 +0000 (08:59 +0000)
sql-edition/servers/VendServer.py

index 02d5f9b..f7bd1cd 100755 (executable)
@@ -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:

UCC git Repository :: git.ucc.asn.au