Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44BC041AE for ; Fri, 1 Jul 2011 17:44:53 +0000 (UTC) Received: (qmail 40570 invoked by uid 500); 1 Jul 2011 17:44:52 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 40475 invoked by uid 500); 1 Jul 2011 17:44:51 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 40453 invoked by uid 99); 1 Jul 2011 17:44:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 17:44:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 17:44:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9F71943F889 for ; Fri, 1 Jul 2011 17:44:28 +0000 (UTC) Date: Fri, 1 Jul 2011 17:44:28 +0000 (UTC) From: "Siegfried Goeschl (JIRA)" To: issues@commons.apache.org Message-ID: <1370117476.9143.1309542268649.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1628535092.22451.1308601847845.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (EXEC-59) execute() does not return if executed process spawned other processes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/EXEC-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058670#comment-13058670 ] Siegfried Goeschl commented on EXEC-59: --------------------------------------- Is it possible to avoid spawning processes? I removed all my little helper scripts and start the processes directly which also helps on WIndows > 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