Setsid is not available on Windows
- wrap an error handler around it
This commit is contained in:
parent
20cbac9752
commit
501f07dd34
|
@ -325,7 +325,11 @@ class Main:
|
|||
else:
|
||||
shared.thisapp.lock() # relock
|
||||
os.umask(0)
|
||||
try:
|
||||
os.setsid()
|
||||
except AttributeError:
|
||||
# setsid not implemented
|
||||
pass
|
||||
try:
|
||||
if os.fork():
|
||||
exit(0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user