Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2011-10-18 20:33:45 +0000
committerEugene Tarassov2011-10-18 20:33:45 +0000
commitc37c1dd77f6772cf16d1e509cc4caa90153560ec (patch)
tree7b6a897ef778fe8d552a116ec9dc42976f80edbf /plugins
parent8741c7530b040add3da15faa31eda32520e00212 (diff)
downloadorg.eclipse.tcf-c37c1dd77f6772cf16d1e509cc4caa90153560ec.tar.gz
org.eclipse.tcf-c37c1dd77f6772cf16d1e509cc4caa90153560ec.tar.xz
org.eclipse.tcf-c37c1dd77f6772cf16d1e509cc4caa90153560ec.zip
TCF RSE: fixed: TCFTerminalShell.setTerminalSize() can deadlock.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java b/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java
index df78289f0..f180dd7a5 100644
--- a/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java
+++ b/plugins/org.eclipse.tm.tcf.rse/src/org/eclipse/tm/internal/tcf/rse/shells/TCFTerminalShell.java
@@ -405,8 +405,8 @@ public class TCFTerminalShell extends AbstractTerminalShell {
}
public void setTerminalSize(int newWidth, int newHeight) {
- // do nothing
if (fChannel == null || (fChannel.getState() == IChannel.STATE_CLOSED) || !connected) {
+ // do nothing
return;
}
fWidth = newWidth;
@@ -426,6 +426,9 @@ public class TCFTerminalShell extends AbstractTerminalShell {
}});
}
+ else {
+ done(this);
+ }
}}.getS(null, Messages.TCFShellService_Name);
}
catch (SystemMessageException e) {

Back to the top