Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 13788 invoked from network); 5 May 2009 15:32:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 May 2009 15:32:50 -0000 Received: (qmail 50919 invoked by uid 500); 5 May 2009 15:32:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 50864 invoked by uid 500); 5 May 2009 15:32:48 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 50854 invoked by uid 99); 5 May 2009 15:32:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 15:32:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.251.185.197] (HELO ns35774.ovh.net) (213.251.185.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 15:32:38 +0000 Received: from smtp.olympe.o2t (138.193.65-86.rev.gaoland.net [86.65.193.138]) by ns35774.ovh.net (Postfix) with ESMTP id 8DA2E92C0DC for ; Tue, 5 May 2009 17:32:09 +0200 (CEST) Received: from erwin.olympe.o2t (erwin.olympe.o2t [192.168.1.21]) by smtp.olympe.o2t (Postfix) with ESMTP id 01D662F2A3 for ; Tue, 5 May 2009 17:32:17 +0200 (CEST) From: Francis Galiegue Organization: One2team To: "Ant Users List" Subject: Re: How to kill child process with control-c Date: Tue, 5 May 2009 17:32:17 +0200 User-Agent: KMail/1.9.9 References: <23389659.post@talk.nabble.com> In-Reply-To: <23389659.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200905051732.17517.fge@one2team.com> X-Virus-Checked: Checked by ClamAV on apache.org Le mardi 05 mai 2009, viet nguyen a =E9crit=A0: >=20 > I have an exec task (spawn=3Dfalse) that calls jmeter.sh/jmeter.bat which= in > turn launches a java process. Control-C only kills ant but does nothing = to > jmeter java process. I can confirm that jmeter app doesn't have any spec= ial > shutdown hooks as I can kill the process with control-c when > jmeter.sh/jmeter.bat is executed directly at the command line. > My ant version=3D1.7.1 I have exactly the same problem with ... So, this is n= ot=20 limited to . I haven't had the opportunity to reproduce the problem yet, but my guess is= =20 that the stdin, stdout and stderr of the fork()ed process(es) are not set t= o=20 the current terminal. Hence, the INTR signal doesn't propagate to ant's=20 children. =2D-=20 =46rancis Galiegue ONE2TEAM Ing=E9nieur syst=E8me Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 fge@one2team.com 40 avenue Raymond Poincar=E9 75116 Paris --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org