1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

Bug 160202 Remote shell dies

This commit is contained in:
Kushal Munir 2006-10-27 22:43:23 +00:00
parent 2672943e2e
commit fea1a3b57f

View file

@ -93,17 +93,24 @@ public class SshServiceCommandShell extends ServiceCommandShell implements ISyst
gotCommand = true;
} else {
try {
parsedMsg = _patterns.matchLine(line);
if ((_curCommand == null) || (!_curCommand.equals("ls"))) {
parsedMsg = _patterns.matchLine(line);
}
}
catch (Throwable e) {
e.printStackTrace();
}
}
RemoteOutput output = null;
String type = "stdout"; //$NON-NLS-1$
if (parsedMsg != null) {
type = parsedMsg.type;
}
if (event.isError()) {
output = new RemoteError(this, type);
}