From eebd6b2507d0c449fcb890f1b18ca0f240fcd8ae Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Mon, 10 Dec 2018 17:00:16 +0300 Subject: [PATCH] IDEA-202796 IDEA-198143 git: limit 'setsid' workaround for Linux systems * This command is not a part of MacOS system library --- .../platform-api/src/com/intellij/execution/util/ExecUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/execution/util/ExecUtil.kt b/platform/platform-api/src/com/intellij/execution/util/ExecUtil.kt index 278d8d226ec4..247a54fafa80 100644 --- a/platform/platform-api/src/com/intellij/execution/util/ExecUtil.kt +++ b/platform/platform-api/src/com/intellij/execution/util/ExecUtil.kt @@ -233,7 +233,7 @@ object ExecUtil { @JvmStatic fun setupNoTtyExecution(commandLine: GeneralCommandLine) { - if (SystemInfo.isUnix && hasSetsid.value) { + if (SystemInfo.isLinux && hasSetsid.value) { val executablePath = commandLine.exePath commandLine.exePath = "setsid" commandLine.parametersList.prependAll("-w", executablePath)