Forking fixes

This commit is contained in:
Peter Šurda 2017-08-15 12:22:24 +02:00
parent 3c50615998
commit 58b47bc6de
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -328,7 +328,7 @@ class Main:
def daemonize(self):
try:
if os.fork():
exit(0)
os._exit(0)
except AttributeError:
# fork not implemented
pass
@ -342,7 +342,7 @@ class Main:
pass
try:
if os.fork():
exit(0)
os._exit(0)
except AttributeError:
# fork not implemented
pass