commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhavesh Shah (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EXEC-41) Patch to enable executing thread to return immediately when process is "killed" by a watchdog
Date Thu, 01 Dec 2011 08:25:40 GMT

    [ https://issues.apache.org/jira/browse/EXEC-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160722#comment-13160722
] 

Bhavesh Shah commented on EXEC-41:
----------------------------------

Where should I put this patch files? Means in which directory?
                
> Patch to enable executing thread to return immediately when process is "killed" by a
watchdog
> ---------------------------------------------------------------------------------------------
>
>                 Key: EXEC-41
>                 URL: https://issues.apache.org/jira/browse/EXEC-41
>             Project: Commons Exec
>          Issue Type: Improvement
>    Affects Versions: 1.0, 1.1
>         Environment: Windows XP
>            Reporter: Ernest Mishkin
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.1
>
>         Attachments: EXEC-41.patch, commons-exec.patch
>
>
> This has been discussed on the commons-users mailing list. The patch intends to solve
the following problem:
> when a process runs longer than allowed by a configured watchdog's timeout, the watchdog
tries to destroy it and then DefaultExecutor tries to clean up by joining with all installed
pump stream threads. Problem is, that sometimes the native process doesn't die and thus streams
aren't closed and the stream threads do not complete.
> The patch provides setAlwaysWaitForStreamThreads(boolean) method in PumpStreamHandler.
By default, alwaysWaitForStreamThreads is set to true to preserve the current behavior. If
set to false, and process is killed by watchdog, DefaultExecutor's call into ErrorStreamHandler.stop
will NOT join the stream threads and DefaultExecutor will NOT attempt to close the streams,
so the executor's thread won't get stuck.
> Additionally, this patch fixes a small but annoying bug in DefaultExecuteHandler.setExitValues(int[])

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message