You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mladen Turk (JIRA)" <ji...@apache.org> on 2010/02/12 11:42:28 UTC

[jira] Resolved: (DAEMON-97) service stops after main method return on JDK 1.6u1

     [ https://issues.apache.org/jira/browse/DAEMON-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mladen Turk resolved DAEMON-97.
-------------------------------

    Resolution: Fixed

Fixed with the 1.0.2
DestroyJavaVM JNI method is called after the main() exits.
This will cause the call to block until all threads exit.
There is potential danger here if the Java application hangs in which case the call will block forever.
[ Show ยป ]
Mladen Turk added a comment - 12/Feb/10 10:41 AM Fixed with the 1.0.2 DestroyJavaVM JNI method is called after the main() exits. This will cause the call to block until all threads exit. There is potential danger here if the Java application hangs in which case the call will block forever.


> service stops after main method return on JDK 1.6u1 
> ----------------------------------------------------
>
>                 Key: DAEMON-97
>                 URL: https://issues.apache.org/jira/browse/DAEMON-97
>             Project: Commons Daemon
>          Issue Type: Bug
>    Affects Versions: 1.0.1
>         Environment: Windows 2003, Sun JDK1.6u1
>            Reporter: Hontvari Jozsef
>            Assignee: Mladen Turk
>            Priority: Critical
>
> The installed service immediately stops in this environment when the main method returns even if there is a non-daemon thread (created and started by the main method). The same code runs well on JavaService.

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