Forking fixes
This commit is contained in:
parent
3c50615998
commit
58b47bc6de
|
@ -328,7 +328,7 @@ class Main:
|
||||||
def daemonize(self):
|
def daemonize(self):
|
||||||
try:
|
try:
|
||||||
if os.fork():
|
if os.fork():
|
||||||
exit(0)
|
os._exit(0)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# fork not implemented
|
# fork not implemented
|
||||||
pass
|
pass
|
||||||
|
@ -342,7 +342,7 @@ class Main:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
if os.fork():
|
if os.fork():
|
||||||
exit(0)
|
os._exit(0)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# fork not implemented
|
# fork not implemented
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user