[jboss-jira] [JBoss JIRA] (WFCORE-1188) Exiting CLI requires stty sane command to be issued on Linux

Ståle Pedersen (JIRA) issues at jboss.org
Tue Dec 8 19:08:00 EST 2015


    [ https://issues.jboss.org/browse/WFCORE-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13138728#comment-13138728 ] 

Ståle Pedersen edited comment on WFCORE-1188 at 12/8/15 7:07 PM:
-----------------------------------------------------------------

Hi, i've debugged a bit and it seems that jboss-cli call Console.stop() in æsh correctly, but it calls System.exit(..) before all of the threads in æsh have finished with the cleanup which is why the terminal is not reset correctly.
Adding a Thread.sleep(200) to CliLauncher before System.exit(..) fixes the issue and verifies what i'm seeing.


was (Author: stalep):
Hi, i've debugged a bit and it seems that jboss-cli call Console.stop() in æsh correctly, but it calls System.exit(..) before all of the threads in æsh have finished with the cleanup which is why the terminal is not reset correctly.

> Exiting CLI requires stty sane command to be issued on Linux
> ------------------------------------------------------------
>
>                 Key: WFCORE-1188
>                 URL: https://issues.jboss.org/browse/WFCORE-1188
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.0.4.Final
>         Environment: Fedora 23
> Linux 4.2.6-301.fc23.x86_64 #1 SMP Fri Nov 20 22:22:41 UTC 2015 GNU/Linux
> openjdk version "1.8.0_65"
> OpenJDK Runtime Environment (build 1.8.0_65-b17)
> OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)
>            Reporter: James Perkins
>            Assignee: Alexey Loubyansky
>
> The PR https://github.com/wildfly/wildfly-core/pull/1268/ seemed to have introduced a regression where some times (seems to be most in my case) {{stty sane}} is required to get a shell back to normal. My guess is it's the aesh upgrade, but I'm not certain on that so I'll start the JIRA here and it can be moved to AESH if necessary.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list