Author: damoxc
Revision: 5846
Log:
use os._exit() rather than exit() when forking
Diff:
Modified: branches/1.2_RC/deluge/ui/web/web.py
===================================================================
--- branches/1.2_RC/deluge/ui/web/web.py 2009-10-14 15:49:55 UTC (rev
5845)
+++ branches/1.2_RC/deluge/ui/web/web.py 2009-10-14 15:53:31 UTC (rev
5846)
@@ -84,14 +84,14 @@
# 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 @@
def start():
web = Web()
- web.start()
\ No newline at end of file
+ web.start()
Modified: trunk/deluge/ui/web/web.py
===================================================================
--- trunk/deluge/ui/web/web.py 2009-10-14 15:49:55 UTC (rev 5845)
+++ trunk/deluge/ui/web/web.py 2009-10-14 15:53:31 UTC (rev 5846)
@@ -84,14 +84,14 @@
# 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 @@
def start():
web = Web()
- web.start()
\ No newline at end of file
+ web.start()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---