Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 46622 invoked from network); 9 Feb 2011 21:34:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2011 21:34:21 -0000 Received: (qmail 99984 invoked by uid 500); 9 Feb 2011 21:34:21 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 99901 invoked by uid 500); 9 Feb 2011 21:34:20 -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 99889 invoked by uid 99); 9 Feb 2011 21:34:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 21:34:20 +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; Wed, 09 Feb 2011 21:34:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AD69D19BD99 for ; Wed, 9 Feb 2011 21:33:57 +0000 (UTC) Date: Wed, 9 Feb 2011 21:33:57 +0000 (UTC) From: "Siegfried Goeschl (JIRA)" To: issues@commons.apache.org Message-ID: <886179686.6206.1297287237706.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1564583291.7030.1296729149571.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (EXEC-53) Allow control over asynchronous execution thread 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-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992727#comment-12992727 ] Siegfried Goeschl commented on EXEC-53: --------------------------------------- Good idea - unit test would be still appreciated ... :-) > Allow control over asynchronous execution thread > ------------------------------------------------ > > Key: EXEC-53 > URL: https://issues.apache.org/jira/browse/EXEC-53 > Project: Commons Exec > Issue Type: Improvement > Affects Versions: 1.1 > Reporter: Nickolay Martinov > Assignee: Siegfried Goeschl > Labels: patch > Attachments: commons-exec-daemon.patch > > Original Estimate: 2h > Remaining Estimate: 2h > > When process is started asynchronously using DefaultExecutor then thread is created that monitors process. This thread is user thread and blocks java program from exiting. There is no way to make this thread daemon. Allowing this to be a daemon thread one would be able to spawn process without &, monitor this process for some time to be sure that it is alive and then exit without calling System.exit() that isnt always possible/desirable. > Also it would be nice to be able to create thread with specific priority or thread group or thread name or anything else. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira