[ https://issues.apache.org/jira/browse/KARAF-5295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16118746#comment-16118746 ]
J. Brébec edited comment on KARAF-5295 at 8/8/17 5:51 PM: ---------------------------------------------------------- I can reproduce it on Mac Os too, with a fresh Karaf 4.1.2 : "Ctrl-C" on a tail close the shell with a logout : {code} karaf@root()> tail ^Clogout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. Deleting expired sessions...7 completed. {code} and in the log : {code} 2017-08-08T19:49:27,487 | ERROR | Karaf local console user karaf | ShellUtil | 42 - org.apache.karaf.shell.core - 4.1.2 | Exception caught while executing command com.sun.jna.LastErrorException: [19] Operation not supported by device at com.sun.jna.Native.invokeVoid(Native Method) ~[?:?] at com.sun.jna.Function.invoke(Function.java:408) [?:?] at com.sun.jna.Function.invoke(Function.java:354) [?:?] at com.sun.jna.Library$Handler.invoke(Library.java:244) [?:?] at com.sun.proxy.$Proxy43.tcgetattr(Unknown Source) [49:org.jline:3.4.0] at org.jline.terminal.impl.jna.osx.OsXNativePty.getAttr(OsXNativePty.java:69) [49:org.jline:3.4.0] at org.jline.terminal.impl.AbstractPosixTerminal.getAttributes(AbstractPosixTerminal.java:43) [49:org.jline:3.4.0] at org.jline.terminal.impl.AbstractTerminal.enterRawMode(AbstractTerminal.java:91) [49:org.jline:3.4.0] at org.apache.karaf.shell.impl.console.JLineTerminal.enterRawMode(JLineTerminal.java:143) [42:org.apache.karaf.shell.core:4.1.2] at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:477) [49:org.jline:3.4.0] at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:347) [42:org.apache.karaf.shell.core:4.1.2] at java.lang.Thread.run(Thread.java:745) [?:?] {code} was (Author: j3rem1e): I can reproduce it on MaxOs too, with a fresh Karaf 4.1.2 : "Ctrl-C" on a tail close the shell with a logout : {code} karaf@root()> tail ^Clogout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. Deleting expired sessions...7 completed. {code} and in the log : {code} 2017-08-08T19:49:27,487 | ERROR | Karaf local console user karaf | ShellUtil | 42 - org.apache.karaf.shell.core - 4.1.2 | Exception caught while executing command com.sun.jna.LastErrorException: [19] Operation not supported by device at com.sun.jna.Native.invokeVoid(Native Method) ~[?:?] at com.sun.jna.Function.invoke(Function.java:408) [?:?] at com.sun.jna.Function.invoke(Function.java:354) [?:?] at com.sun.jna.Library$Handler.invoke(Library.java:244) [?:?] at com.sun.proxy.$Proxy43.tcgetattr(Unknown Source) [49:org.jline:3.4.0] at org.jline.terminal.impl.jna.osx.OsXNativePty.getAttr(OsXNativePty.java:69) [49:org.jline:3.4.0] at org.jline.terminal.impl.AbstractPosixTerminal.getAttributes(AbstractPosixTerminal.java:43) [49:org.jline:3.4.0] at org.jline.terminal.impl.AbstractTerminal.enterRawMode(AbstractTerminal.java:91) [49:org.jline:3.4.0] at org.apache.karaf.shell.impl.console.JLineTerminal.enterRawMode(JLineTerminal.java:143) [42:org.apache.karaf.shell.core:4.1.2] at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:477) [49:org.jline:3.4.0] at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:347) [42:org.apache.karaf.shell.core:4.1.2] at java.lang.Thread.run(Thread.java:745) [?:?] {code} > log:tail kills the current session > ---------------------------------- > > Key: KARAF-5295 > URL: https://issues.apache.org/jira/browse/KARAF-5295 > Project: Karaf > Issue Type: Bug > Affects Versions: 4.1.2 > Reporter: J. Brébec > Assignee: Jean-Baptiste Onofré > > When using "Ctrl-C" to close the "log:tail" command, the current ssh session > is killed with the message "java.nio.channels.ClosedByInterruptException" and > then "Error executing command: java.io.IOException: Pipe closed" > Moreover, on windows with karaf.bat, this error kills the java process. -- This message was sent by Atlassian JIRA (v6.4.14#64029)