From issues-return-86903-apmail-maven-issues-archive=maven.apache.org@maven.apache.org Tue Sep 10 07:32:20 2013 Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-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 B93FF10383 for ; Tue, 10 Sep 2013 07:32:20 +0000 (UTC) Received: (qmail 98907 invoked by uid 500); 10 Sep 2013 07:32:20 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 98785 invoked by uid 500); 10 Sep 2013 07:32:19 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 98777 invoked by uid 99); 10 Sep 2013 07:32:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Sep 2013 07:32:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [199.193.192.100] (HELO codehaus01.managed.contegix.com) (199.193.192.100) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Sep 2013 07:32:13 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id DB4A0B10B5 for ; Tue, 10 Sep 2013 02:31:52 -0500 (CDT) Date: Tue, 10 Sep 2013 02:31:52 -0500 (CDT) From: "Kristian Rosenvold (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MSHARED-295) Non reliable killing of processes by CommandLineUtils MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/MSHARED-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=332606#comment-332606 ] Kristian Rosenvold commented on MSHARED-295: -------------------------------------------- And selenium uses JNA on windows and also shells to kill on linux. Killing firefox cross platform turns out to be one of the hardest problems in computer science. That stuff about P and NP is just kids stuff compared. > Non reliable killing of processes by CommandLineUtils > ----------------------------------------------------- > > Key: MSHARED-295 > URL: https://jira.codehaus.org/browse/MSHARED-295 > Project: Maven Shared Components > Issue Type: Improvement > Components: maven-shared-utils > Reporter: Andrey Klochkov > > CommandLineUtils is used in Maven-Surefire to start forks which execute tests. It is a well known issue that sometimes child processes are not killed correctly. This is a known limitation of JVM, and the only reliable way to implement it would be platform specific. > Bug report in Surefire JIRA: > http://jira.codehaus.org/browse/SUREFIRE-773 > JVM bug report. It's Windows specific, but the problem exists on Linux and OSX as well. > http://bugs.sun.com/view_bug.do?bug_id=4770092 > I'm proposing either 1) to implement several platform specific implementations of ProcessHook or 2) to make the mechanism of killing processes extendable for clients of the library. -- 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