From user-return-67680-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue May 05 15:58:49 2009 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 27398 invoked from network); 5 May 2009 15:58:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 May 2009 15:58:49 -0000 Received: (qmail 29515 invoked by uid 500); 5 May 2009 15:58:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 29460 invoked by uid 500); 5 May 2009 15:58:47 -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 29450 invoked by uid 99); 5 May 2009 15:58:47 -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:58:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 15:58:37 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M1N28-0002Ug-DW for user@ant.apache.org; Tue, 05 May 2009 08:58:16 -0700 Message-ID: <23390448.post@talk.nabble.com> Date: Tue, 5 May 2009 08:58:16 -0700 (PDT) From: viet nguyen To: user@ant.apache.org Subject: RE: How to kill child process with control-c In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: viet.atx@gmail.com References: <23389659.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the quick replies. As a workaround I can probably duplicate what jmeter.sh does in Ant, ie specifying all the GC flags, heap sizes, etc and launch java directly. =20 mgainty wrote: >=20 >=20 > your term utility does not have cascade capability > and calling ant exec task creates another process >=20 > use java instead with=20 > spawn=3D"false" >=20 > fork=3D"false" >=20 >=20 > http://ant.apache.org/manual/CoreTasks/java.html >=20 > HTH > Martin=20 > ______________________________________________=20 > Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note > de d=C3=A9ni et de confidentialit=C3=A9 > This message is confidential. If you should not be the intended receiver, > then we ask politely to report. Each unauthorized forwarding or > manufacturing of a copy is inadmissible. This message serves only for the > exchange of information and has no legal binding effect. Due to the easy > manipulation of emails we cannot take responsibility over the the > contents. > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugt= e > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut =C3=AAtre privil=C3=A9gi=C3=A9. Si vo= us n'=C3=AAtes pas le > destinataire pr=C3=A9vu, nous te demandons avec bont=C3=A9 que pour satis= faire > informez l'exp=C3=A9diteur. N'importe quelle diffusion non autoris=C3=A9e= ou la > copie de ceci est interdite. Ce message sert =C3=A0 l'information seuleme= nt et > n'aura pas n'importe quel effet l=C3=A9galement obligatoire. =C3=89tant d= onn=C3=A9 que > les email peuvent facilement =C3=AAtre sujets =C3=A0 la manipulation, nou= s ne > pouvons accepter aucune responsabilit=C3=A9 pour le contenu fourni. >=20 >=20 >=20 >=20 >> Date: Tue, 5 May 2009 08:19:23 -0700 >> From: viet.atx@gmail.com >> To: user@ant.apache.org >> Subject: How to kill child process with control-c >>=20 >>=20 >> I have an exec task (spawn=3Dfalse) that calls jmeter.sh/jmeter.bat whic= h >> 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 >> special >> 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 >> --=20 >> View this message in context: >> http://www.nabble.com/How-to-kill-child-process-with-control-c-tp2338965= 9p23389659.html >> Sent from the Ant - Users mailing list archive at Nabble.com. >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >>=20 >=20 > _________________________________________________________________ > Hotmail=C2=AE has a new way to see what's up with your friends. > http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=3DTXT_TAGLM_WL_HM_T= utorial_WhatsNew1_052009 >=20 --=20 View this message in context: http://www.nabble.com/How-to-kill-child-proce= ss-with-control-c-tp23389659p23390448.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org