1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

Bug 356132 - TerminalServiceHostShell with SshTerminalShell on slower targets will hang the shell when writeToShell with commands on shell that is not ready to accept command yet

This commit is contained in:
Martin Oberhuber 2011-09-14 16:37:00 +00:00
parent f6e5dc2b7a
commit f360d54532

View file

@ -69,6 +69,7 @@ public class TerminalServiceHostShell extends AbstractHostShell {
.getInputStream()));
}
//bug 356132: wait for initial output before sending any command
//FIXME this should likely move into the TerminalServiceShellWriterThread, so wait can be canceled
bufReader.mark(1);
bufReader.read();
bufReader.reset();