You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Alin Dreghiciu (JIRA)" <ji...@apache.org> on 2009/05/01 13:07:31 UTC

[jira] Commented: (FELIX-1105) Make Thread in LocalConsole not a daemon thread

    [ https://issues.apache.org/jira/browse/FELIX-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704957#action_12704957 ] 

Alin Dreghiciu commented on FELIX-1105:
---------------------------------------

It is strange. During my tests I changed the line you mention into:
{code}
Thread thread = new Thread(this, "localShell");
thread.setDaemon(false);
thread.start();
{code}

and the problem was gone. I know it is strange as by default the thread is not a daemon thread but maybe I miss something here.

More, I cannot test now as my whole testing infrastructure (the pax runner profile) is blocked by FELIX-1115.

> Make Thread in LocalConsole not a daemon thread
> -----------------------------------------------
>
>                 Key: FELIX-1105
>                 URL: https://issues.apache.org/jira/browse/FELIX-1105
>             Project: Felix
>          Issue Type: Improvement
>          Components: Karaf
>            Reporter: Alin Dreghiciu
>            Priority: Minor
>
> When using the LocalConsole in Equinox without console, equinox will exit if their own console is not there (and is not there because we use GShell) unless there is a non daemon thread. So, just mark the created thread as non daemon thread.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.