mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r798043 - /mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/channel/ChannelSession.java
Date Mon, 27 Jul 2009 06:59:43 GMT
Author: gnodet
Date: Mon Jul 27 06:59:42 2009
New Revision: 798043

URL: http://svn.apache.org/viewvc?rev=798043&view=rev
Log:
SSHD-35: EOF to stdin from ssh client isn't propagated to the command (patch provided by Kohsuke
Kawaguchi)

Modified:
    mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/channel/ChannelSession.java

Modified: mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/channel/ChannelSession.java
URL: http://svn.apache.org/viewvc/mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/channel/ChannelSession.java?rev=798043&r1=798042&r2=798043&view=diff
==============================================================================
--- mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/channel/ChannelSession.java
(original)
+++ mina/sshd/trunk/sshd-core/src/main/java/org/apache/sshd/server/channel/ChannelSession.java
Mon Jul 27 06:59:42 2009
@@ -238,6 +238,12 @@
         });
     }
 
+    @Override
+    public void handleEof() throws IOException {
+        super.handleEof();
+        shellIn.close();
+    }
+
     public void handleRequest(Buffer buffer) throws IOException {
         log.info("Received SSH_MSG_CHANNEL_REQUEST on channel {}", id);
         String type = buffer.getString();



Mime
View raw message