X-Recipient: archive-cygwin AT delorie DOT 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:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=QQPFgYlh5lSCDgIuEIbohY+UgezfLviDfwGYX5W4iURR+L8F+7/6X gWKIrj+ukQKcy+vfHhbjWlgUvERub6ms5BJWSgREACQM5K/u2Rsxk3oh+Uk7ZmC2 HxW5gQBr3TE++2gwQpqxRfEZLJbHFh7RGmS40pZxntPFgmbPfeEPao= 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:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=MzzvfMzRXyna4K/QU66HyIMkF20=; b=soIciX/pPFt+D7b1DPdWZKI/2evm P3rV4PGzfnqVlKxA26V63+v2euKZKC23fsA+8R6DR7VPk00HcjLSSZkEBY7NMdMT Tfh+NyepqS5mZ3OSg50xU4NNbDSz0SYOxlKmqCQvxVMjXBMXrJBRIxRnzYcOv6mX r1vhaa1QemM8G+U= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-103.3 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: mout.kundenserver.de Date: Wed, 28 Aug 2019 17:45:53 +0200 From: Corinna Vinschen To: Quanah Gibson-Mount Cc: cygwin AT cygwin DOT com Subject: Re: Bug report: Killing a native process may not actually kill it Message-ID: <20190828154553.GQ11632@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Quanah Gibson-Mount , cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JJHSBgLGkle7+a6x" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) --JJHSBgLGkle7+a6x Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 28 08:18, Quanah Gibson-Mount wrote: >=20 >=20 > --On Thursday, July 25, 2019 11:32 AM -0700 Quanah Gibson-Mount > wrote: >=20 > > As found and reported to the MSYS team back in 2006 by Howard Chu, if a > > native process is spawned, control-C, the kill command, etc, may not > > actually kill the process. Details are here: >=20 > I haven't seen a reply to this, so I just wanted to confirm that the Cygw= in > project is aware and (hopefully) will be able to do something to fix this= in > the long term. Not likely. Cygwin handles Ctrl-C by generating SIGINT. This only works reliably with Cygwin processes. There's $ /bin/kill -f to call the Win32 function TerminateProcess(pid) on a non-Cygwin process or an unresponsive Cygwin process. Corinna --=20 Corinna Vinschen Cygwin Maintainer --JJHSBgLGkle7+a6x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1mobAACgkQ9TYGna5E T6BXgRAAjS2YcM3vXv+VY43269mSDMxyov1B3MQ9MFwvHlw6/eSQM4ntp//cl69D ybvok8tvGPremvm95bMpPb/dCpCuo08bL/9B6IeaHI4HRb0ralyUJahUvdHoybJM XwR5Qm4fbMO+i56qtljq++W2zS4i36lGe8hv3E/JaWkf+xYGEKEUT7aRV2iQFyaS /cR+6Fuw7n5nmfd4kH5YowkYtW/Q6Ek2RwKkV34nR7lGzLEIV0aWtzkHxodGgesG h0dHUWEHDEPURNXAr+egN5d9ExcFrdx+hQCIPYaFFTbTpzKJO6uVBoLrmb25riVA HqvC+0PlZtNcxURaGKfwr2h36uaopfMFte7sgr7vqRXTgk5D+zxo5rwep57QK880 RIP8Q2dFEr1/rY7kGkRUkFIS3olki6hyE5scmi0bRUzcHA4SGqYG0Tl5lf4ewXun ZJg7QDuu5vHZL8OgueVoFTYBcE2mOxcLrWProh47Mri3SkF1Sl47XPoBToMvNBnk 11OiKphkIn6X6VuWxoVZOrZP8ssMu0iuyqBrZncqbphUBMs9UxjbpK/adbQmCZ5S BRm407XT9MW97sNELPyLMGqkLomD+QtaVLZsfY4N4+yPy6RoEnPlbHfLYNh5/Rxd wfyUNdQkj3myTaD5noFcF8/KSETP3MnLO/l7Fl+7Qc9y3VAqilU= =PyX9 -----END PGP SIGNATURE----- --JJHSBgLGkle7+a6x--