karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lijun Liao (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-4838) InterruptedException of karaf shell will not be forwarded to the commands executed via source
Date Wed, 30 Nov 2016 09:50:58 GMT

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

Lijun Liao edited comment on KARAF-4838 at 11/30/16 9:50 AM:
-------------------------------------------------------------

I have updated the issue description by adding the steps to reproduce the error.


was (Author: lliao):
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)

Mime
View raw message