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): 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