commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Tombs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EXEC-59) execute() does not return if executed process spawned other processes
Date Sat, 02 Jul 2011 22:56:21 GMT

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

David Tombs commented on EXEC-59:
---------------------------------

Hi Siegried. No, that's not really possible in my case. I'm working on some code that needs
to make as little assumptions as possible about the executed process. I think this bug should
be fixable. As I said in the description, I think it's due to a bad assumption in PumpStreamHandler.stop()
or nearby.

> execute() does not return if executed process spawned other processes
> ---------------------------------------------------------------------
>
>                 Key: EXEC-59
>                 URL: https://issues.apache.org/jira/browse/EXEC-59
>             Project: Commons Exec
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Linux x86_64
>            Reporter: David Tombs
>            Priority: Minor
>         Attachments: spawner.sh
>
>
> When executing a process that spawns other processes, DefaultExecutor.execute() does
not return until these secondary processes die.
> This is a problem for me because I am executing a long-running service that uses long-running
helper processes. I want to know if the service process crashes (which leaves the helper processes
running), but I never get any notice because execute() does not return. It blocks while calling
PumpStreamHandler.stop().

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message