RUBY-10022 FreeBSD support

This commit is contained in:
Dennis Ushakov
2012-02-02 14:15:02 +04:00
parent 1a47dc662c
commit 2a6d8bb49a
@@ -178,6 +178,9 @@ public class UnixProcessManager {
else if (SystemInfo.isMac) {
return new String[]{"ps", "-ax", "-E", "-o", commandLineOnly ? "command" : "ppid,pid,command"};
}
else if (SystemInfo.isFreeBSD) {
return new String[]{"ps", "-ax", "-e", "-o", commandLineOnly ? "command" : "ppid,pid,command"};
}
else {
throw new IllegalStateException(System.getProperty("os.name") + " is not supported.");
}