X-Spam-Check-By: sourceware.org
Date: Sat, 28 Oct 2006 00:16:09 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: rxvt: Ctrl+C leaves child process of native processes
Message-ID: <20061028041609.GA17972@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <e4d6a34d0610271740w62df0aa3l8da64ee19cc90cbf@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <e4d6a34d0610271740w62df0aa3l8da64ee19cc90cbf@mail.gmail.com>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Fri, Oct 27, 2006 at 05:40:36PM -0700, Hari Krishna Dara wrote:
>When I hit ^C in an rxvt window (no X), it doesn't result in killing
>all the child processes.
>
>In this specific case, I am running ant, either through ant.bat, ant
>(shell script) or through a custom perl wrapper (which directly
>executes java bypassing  ant.bat or ant).
>
>When the perl wrapper is used it is started from another batch file,
>so here is how the process execution:
>- batch starts a perl command
>- perl command starts java (ant)
>- ant starts another java process
>
>The process tree as shown by sysinternals' process explorer is:
>
>bash
> cmd
>   perl
>     java
>       java
>
>When I hit ^C, bash and cmd exit immediately leaving perl and the two
>java processes.

Cygwin has no way of knowing what the children of non-cygwin
subprocesses are.  So, as you've found, if you don't use a Cygwin
program, you won't get linux-like signal results.  This shouldn't be
*too* surprising.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

