commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Atkins (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (EXEC-69) DefaultExecutor async execute prevents shutdown hooks running
Date Mon, 05 Nov 2012 05:21:12 GMT

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

Richard Atkins updated EXEC-69:
-------------------------------

    Attachment: DaemonExecutor.java

Attached is a very simple fix for this: it's a subclass of DefaultExecutor that creates daemon
threads in the createThread() factory method. Library users will have to select this class,
rather than DefaultExecutor, in order to take advantage of it.
                
> DefaultExecutor async execute prevents shutdown hooks running
> -------------------------------------------------------------
>
>                 Key: EXEC-69
>                 URL: https://issues.apache.org/jira/browse/EXEC-69
>             Project: Commons Exec
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Richard Atkins
>         Attachments: DaemonExecutor.java
>
>
> The DefaultExecutor asynchronous execute methods create a user-level thread to monitor
the process it starts. This prevents shutdown hooks - like the one in ShutdownHookProcessDestroyer
- from running. This makes these two classes incompatible.

--
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

Mime
View raw message