Community
Participate
Working Groups
Setup remote debugging to a remote gdb server and attempt to start it via telnet. It will always fail, since the exitValue() method of the TelnetCommandShell will never throw an IllegalThreadStateException and thus the process is treated as closed. As long the TelnetCommandShell is alive it must throw an IllegalThreadStateException in the exitValue() method as any real process does while the process is alive. This is my fixed method: @Override public int exitValue() { if (protocol.isAlive()) throw new IllegalThreadStateException(); return 0; }