felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lazar Kirchev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4024) Refreshing Gogo shell bundle leaves running daemon thread
Date Sun, 14 Apr 2013 16:32:15 GMT
Lazar Kirchev created FELIX-4024:

             Summary: Refreshing Gogo shell bundle leaves running daemon thread
                 Key: FELIX-4024
                 URL: https://issues.apache.org/jira/browse/FELIX-4024
             Project: Felix
          Issue Type: Bug
          Components: Gogo Shell
    Affects Versions: gogo.shell-0.10.0, gogo.shell-0.8.0
            Reporter: Lazar Kirchev

In the Activator of the Gogo shell bundle a new thread is created (line 122) and started (line
123). The thread instance is stored and upon bundle stop it is interrupted (line 54). 

However, the thread which is created on line 122 is daemon, so after interruption on line
54 it does not go away. So each time the bundle is refreshed a new thread is created and started,
but the old one continues to live. In this way a bunch of "Gogo shell" threads get created.
These compete for input from the std in and the commands are not read correctly.

The line nubmers are valid for 0.8.0 and 0.10.0 versions.

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

View raw message