Use OnWindows from utils instead of ad-hoc platform check.
This commit is contained in:
parent
8f116b849a
commit
6df96fcccf
@ -112,7 +112,7 @@ def Main():
|
||||
|
||||
# If not on windows, detach from controlling terminal to prevent
|
||||
# SIGINT from killing us.
|
||||
if sys.platform is not 'win32':
|
||||
if not utils.OnWindows():
|
||||
os.setsid()
|
||||
|
||||
# This can't be a top-level import because it transitively imports
|
||||
|
Loading…
Reference in New Issue
Block a user