From bdc173cf4b730feb7be45edb5d55b7ed93db33c7 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 14 Oct 2009 15:53:31 +0000 Subject: [PATCH] use os._exit() rather than exit() when forking --- deluge/ui/web/web.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/web/web.py b/deluge/ui/web/web.py index 1ebb3c065..ba9554336 100644 --- a/deluge/ui/web/web.py +++ b/deluge/ui/web/web.py @@ -84,14 +84,14 @@ class Web(_UI): # fork() so the parent can exit, returns control to the command line # or shell invoking the program. if os.fork(): - exit(0) + os._exit(0) # setsid() to become a process group and session group leader. os.setsid() # fork() again so the parent, (the session group leader), can exit. if os.fork(): - exit(0) + os._exit(0) # chdir() to esnure that our process doesn't keep any directory in # use that may prevent a filesystem unmount. @@ -112,4 +112,4 @@ class Web(_UI): def start(): web = Web() - web.start() \ No newline at end of file + web.start()