IDEA-156165 WinPty process subprocesses are not killed - need to destroy agent after killing child

This commit is contained in:
Egor.Ushakov
2016-05-18 16:14:30 +03:00
parent 35b838283b
commit 788df85d0c
@@ -52,7 +52,9 @@ public class OSProcessUtil {
if (SystemInfo.isWindows) {
try {
if (process instanceof WinPtyProcess) {
return WinProcessManager.kill(((WinPtyProcess)process).getChildProcessId(), true);
boolean res = WinProcessManager.kill(((WinPtyProcess)process).getChildProcessId(), true);
process.destroy();
return res;
}
if (Registry.is("disable.winp")) {
return WinProcessManager.kill(process, true);