X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; q=dns; s=default; b=XwPFGHfb8y7LDPzLx8xD+rmDlFa9
	D8hLu3+UUS6dNdEflOJtoxV2nMsx+kuZTIRalILL02CFFrCS+BBT9YGJvQWTmYDP
	N9WTSDXExS89ZgYdHt0NQIfQd6neel7I1PGdhZaKBjLq5MYHVUNrox3ggR6LgcRk
	XHgm0q7xz1Aa2CQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; s=default; bh=s9vF/nhPsmXtXR4L2uXoe8omCu4=; b=ui
	xPOeH5fYpcjaHP3BG24lzx9h86pWtTCTaAzxk+l7UURQBpsdr81NoRecw/uY2c0x
	7OogG8xggZ0h/QI8/KENSzKwgOLiuCQnmCVZ+fXIL6XyfZ6pqMWbzZ1k0+d0CWFB
	YgHO998yn9gCWOh8rorz5zAaF97A+OY2ag4p0mJ/s=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: etr-usa.com
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\))
Subject: Re: how to make sure subprocesses die?
From: Warren Young <wyml@etr-usa.com>
In-Reply-To: <55D33D15.2030401@gmail.com>
Date: Tue, 18 Aug 2015 08:31:52 -0600
Message-Id: <47B92080-8E07-4832-9520-A183E3436070@etr-usa.com>
References: <55D33D15.2030401@gmail.com>
To: The Cygwin Mailing List <cygwin@cygwin.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t7IEW2qF011487

On Aug 18, 2015, at 8:11 AM, Noel Grandin <noelgrandin@gmail.com> wrote:
> 
> When running GNU make from the cygwin bash prompt and killing it with CTRL-C, the children don't seem to be dying properly.

  $ svn checkout svn://svn.code.sf.net/p/ctags/code/trunk ctags
  $ cd ctags
  $ autoconf && autoheader && ./configure
  $ make -j3
  gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c args.c
  gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c ant.c
  gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c asm.c
  gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c asp.c
  gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c awk.c
  gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c basic.c
  gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c beta.c
  gcc -I. -I. -DHAVE_CONFIG_H -g -O2 -c c.c
  <Ctrl-C>
  make: *** Deleting file 'basic.o'
  Makefile:220: recipe for target 'beta.o' failed
  make: *** [beta.o] Interrupt
  Makefile:220: recipe for target 'basic.o' failed
  make: *** [basic.o] Interrupt
  $

Works for me.

Disagree?  Provide a replicable, simple test case to show it.
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


