[forge-issues] [JBoss JIRA] (FORGE-1012) Forge occassionally requires an additional keystroke to be terminated

Vineet Reynolds (JIRA) jira-events at lists.jboss.org
Sun Jul 14 02:31:26 EDT 2013


     [ https://issues.jboss.org/browse/FORGE-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vineet Reynolds updated FORGE-1012:
-----------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/forge/core/pull/332


Set the console reader thread to a daemon.

This ensures that Forge terminates immediately upon exit without requiring another keystroke to unblock the blocked reader thread on System.in

Also modified the invocation of the exit command on Ctrl+D to issue a new line upon exit to ensure that the shell prompt appears in a new line.
                
> Forge occassionally requires an additional keystroke to be terminated
> ---------------------------------------------------------------------
>
>                 Key: FORGE-1012
>                 URL: https://issues.jboss.org/browse/FORGE-1012
>             Project: Forge
>          Issue Type: Bug
>          Components: UI - Shell
>    Affects Versions: 1.3.3.Final
>            Reporter: Vineet Reynolds
>            Assignee: Vineet Reynolds
>            Priority: Minor
>
> This is related to the behavior described in FORGE-593. In that bug, a keystroke consumed by Forge was lost due to the blocking thread. The bugfix for that issue did not involve any fixes around the blocking read on System.in.
> Hence, the reader thread continues to block when reading System.in, thus requiring users to send another keystroke (again to be consumed by the blocking reader) on exiting Forge (since the reader operates in a non-daemon thread).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list