Commit 6613a1fb authored by vadim.lomshakov's avatar vadim.lomshakov
Browse files

[rider]: return correct pid for WinPtyProcess

parent 0a001398
Branches unavailable Tags unavailable
Showing with 3 additions and 0 deletions
+3 -0
......@@ -100,6 +100,9 @@ public class OSProcessUtil {
public static int getProcessID(@NotNull Process process) {
if (SystemInfo.isWindows) {
try {
if (process instanceof WinPtyProcess) {
return ((WinPtyProcess)process).getChildProcessId();
}
if (Registry.is("disable.winp")) {
return WinProcessManager.getProcessPid(process);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment