1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 12:05:21 +02:00

RESOLVED - bug 240420: [terminal][ssh]Channel is not closed when the connection is closed with the close button

https://bugs.eclipse.org/bugs/show_bug.cgi?id=240420
This commit is contained in:
Michael Scharf 2008-07-10 22:12:14 +00:00
parent 518a73d52f
commit 0392e3902d

View file

@ -121,6 +121,7 @@ class SshConnection extends Thread {
ChannelShell channel=(ChannelShell) session.openChannel("shell"); //$NON-NLS-1$ ChannelShell channel=(ChannelShell) session.openChannel("shell"); //$NON-NLS-1$
channel.setPtyType("ansi"); //$NON-NLS-1$ channel.setPtyType("ansi"); //$NON-NLS-1$
channel.connect(); channel.connect();
setChannel(channel);
fConn.setInputStream(channel.getInputStream()); fConn.setInputStream(channel.getInputStream());
fConn.setOutputStream(channel.getOutputStream()); fConn.setOutputStream(channel.getOutputStream());
fConn.setChannel(channel); fConn.setChannel(channel);