mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better windows attach profiler handling
IDEA-CR-45310 (cherry picked from commit 1bdf26f8433bfe06be8cd7c6b5e5a49bd6963bc7)
This commit is contained in:
+5
@@ -95,6 +95,10 @@ public abstract class AttachOSHandler {
|
||||
GeneralCommandLine getOsCommandLine = new GeneralCommandLine("uname", "-s");
|
||||
final String osString = host.getProcessOutput(getOsCommandLine).getStdout().trim();
|
||||
|
||||
if(osString.startsWith("MSYS")) {
|
||||
return OSType.WINDOWS;
|
||||
}
|
||||
|
||||
OSType osType;
|
||||
|
||||
switch (osString) {
|
||||
@@ -118,6 +122,7 @@ public abstract class AttachOSHandler {
|
||||
public enum OSType {
|
||||
LINUX,
|
||||
MACOSX,
|
||||
WINDOWS,
|
||||
UNKNOWN
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user