From 6df96fcccffd5929595d8deb9e008f4712d4117e Mon Sep 17 00:00:00 2001 From: Marc Burns Date: Tue, 1 Apr 2014 20:29:20 -0400 Subject: [PATCH] Use OnWindows from utils instead of ad-hoc platform check. --- python/ycm/server/ycmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/server/ycmd.py b/python/ycm/server/ycmd.py index ff8714c5..7903bba2 100755 --- a/python/ycm/server/ycmd.py +++ b/python/ycm/server/ycmd.py @@ -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