mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 20:53:12 +02:00
[194466] Fix shell terminated state when stream is closed
This commit is contained in:
parent
194db3948a
commit
ea3fbeb2a4
1 changed files with 5 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
||||||
* Sheldon D'souza (Celunite) - Adapted from SshHostShell
|
* Sheldon D'souza (Celunite) - Adapted from SshHostShell
|
||||||
* Sheldon D'souza (Celunite) - [187301] support multiple telnet shells
|
* Sheldon D'souza (Celunite) - [187301] support multiple telnet shells
|
||||||
* David McKnight (IBM) - [191599] Use the remote encoding specified in the host property page
|
* David McKnight (IBM) - [191599] Use the remote encoding specified in the host property page
|
||||||
|
* Martin Oberhuber (Wind River) - [194466] Fix shell terminated state when stream is closed
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.rse.internal.services.telnet.shell;
|
package org.eclipse.rse.internal.services.telnet.shell;
|
||||||
|
|
||||||
|
@ -94,7 +95,9 @@ public class TelnetHostShell extends AbstractHostShell implements IHostShell {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void exit() {
|
public void exit() {
|
||||||
fShellWriter.stopThread();
|
if (fShellWriter.isAlive()) {
|
||||||
|
fShellWriter.stopThread();
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
//TODO disconnect should better be done via the ConnectorService!!
|
//TODO disconnect should better be done via the ConnectorService!!
|
||||||
//Because like we do it here, the connector service is not notified!
|
//Because like we do it here, the connector service is not notified!
|
||||||
|
@ -118,7 +121,7 @@ public class TelnetHostShell extends AbstractHostShell implements IHostShell {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isActive() {
|
public boolean isActive() {
|
||||||
if (fTelnetClient!=null && fTelnetClient.isConnected()) {
|
if (fTelnetClient!=null && fTelnetClient.isConnected() && !fStdoutHandler.isFinished()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// shell is not active: check for session lost
|
// shell is not active: check for session lost
|
||||||
|
|
Loading…
Add table
Reference in a new issue