Forking fixes
This commit is contained in:
parent
3c50615998
commit
58b47bc6de
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user