karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject [1/2] karaf git commit: Fix exception printed when shutting down
Date Tue, 06 Dec 2016 08:08:32 GMT
Repository: karaf
Updated Branches:
  refs/heads/master 0cf806b53 -> 1ff5aa1aa


Fix exception printed when shutting down

Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/b0c227c3
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/b0c227c3
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/b0c227c3

Branch: refs/heads/master
Commit: b0c227c3300f2c4de0c69608ecf1f2e3f0df2acb
Parents: 0cf806b
Author: Guillaume Nodet <gnodet@apache.org>
Authored: Tue Dec 6 07:54:28 2016 +0100
Committer: Guillaume Nodet <gnodet@apache.org>
Committed: Tue Dec 6 07:54:28 2016 +0100

----------------------------------------------------------------------
 .../org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/b0c227c3/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
----------------------------------------------------------------------
diff --git a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
index 5dc793e..fcd29be 100644
--- a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
+++ b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
@@ -332,6 +332,8 @@ public class ConsoleSessionImpl implements Session {
                 reading.set(true);
                 try {
                     command = reader.readLine(getPrompt(), getRPrompt(), null, null);
+                } catch (EndOfFileException e) {
+                    break;
                 } catch (UserInterruptException e) {
                     // Ignore, loop again
                     continue;


Mime
View raw message