You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Lijun Liao (JIRA)" <ji...@apache.org> on 2016/11/30 09:50:00 UTC

[jira] [Commented] (KARAF-4838) InterruptedException of karaf shell will not be forwarded to the commands executed via source

    [ https://issues.apache.org/jira/browse/KARAF-4838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15708088#comment-15708088 ] 

Lijun Liao commented on KARAF-4838:
-----------------------------------

I have updated the issue description to add the steps to reproduce the error.

> InterruptedException of karaf shell will not be forwarded to the commands executed via source
> ---------------------------------------------------------------------------------------------
>
>                 Key: KARAF-4838
>                 URL: https://issues.apache.org/jira/browse/KARAF-4838
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.1.0
>            Reporter: Lijun Liao
>             Fix For: 4.1.0
>
>
> In karaf 4.0.7, the InterruptedException (triggered by CTRL + C) is forwarded by the karaf shell to the commands executed via source. This forwarding is useful since the application can then decide whether it should cancel the action. However this forwarding has been deactivated in karaf 4.1.0.
> Steps to reproduce the problem in Linux:
> 1. Create a file demo.script that contains the line
>    "sleep 10"
> 2. In karaf shell, execute the commands via
>   "source demo.scipt"
> 3. In karaf shell, enter CTRL + C, you will see
> "gogo: InterruptedException: null" instead of the expected "sleep: interrupted"
> Additionally, if you enter CTRL + D after step 3 to exit karaf, the OS-terminal will be in invalid state. You cannot see what you enter in the OS-terminal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)