You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2021/11/30 05:18:25 UTC
[karaf] branch karaf-4.3.x updated: [KARAF-7264] Graceful (not immediate) shutdown shell command session
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch karaf-4.3.x
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/karaf-4.3.x by this push:
new d55fb8a [KARAF-7264] Graceful (not immediate) shutdown shell command session
d55fb8a is described below
commit d55fb8a43bb8bf64d42ed6d5e19a87c2f58a9b56
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Mon Nov 29 20:39:45 2021 +0100
[KARAF-7264] Graceful (not immediate) shutdown shell command session
(cherry picked from commit 80ae4361a91a60b49b71b5e4c8b8aafb1124670a)
---
shell/ssh/src/main/java/org/apache/karaf/shell/ssh/ShellCommand.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/ShellCommand.java b/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/ShellCommand.java
index b63cd7b..3eefbdd 100644
--- a/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/ShellCommand.java
+++ b/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/ShellCommand.java
@@ -146,7 +146,7 @@ public class ShellCommand implements Command {
callback.onExit(exitStatus);
StreamUtils.close(in, out, err);
if (session != null) {
- session.close(true);
+ session.close(false);
}
}
}