mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-156165 WinPty process subprocesses are not killed - need to destroy agent after killing child
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user