From 1de3e93582147de8caa7ae47ef0f0664a585219d Mon Sep 17 00:00:00 2001 From: Cameron Patrick Date: Sun, 1 Aug 2004 08:59:27 +0000 Subject: [PATCH] really fix it --- sql-edition/servers/VendServer.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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: -- 2.20.1