delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/29/11:54:07

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:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=BGw
kArvxM00zdg6yXhoDnZQ9gKLod2uGq97P1z4OJZCcPawNMyXnLvzgDAZUKInF+IX
NVA3kNitxoikb4i33K+jkQMY+pPjHBdiFxk3syMhuwcEKfdE1jBXYm4vyHA6bzyd
oZPb7r1WMPtlZFYZurRhq9pswQV550XiIH0plBqU=
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:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=Y6vqDk3uH
5rSesAgm7xRxbzrAKk=; b=eEEKZbDDG9u9w68MNITC1ZuJ62HSLkZlAC4okKgg8
SNuDqostvkltDZsNiLgsjjvbskx14ECV+5enIwLjgPCps09VFoXu7gkdbhm9sLUE
UB0umbZwdyfGzzwzGsUQF0WMwODAWdkfTLz+rdGTII5T7My8ifiAUmwXTotI5PS2
BA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: nihxwayout.hub.nih.gov
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Am0FAHPZb1KcKEex/2dsb2JhbABZhBO/NYFAbQeCJwEEEihRASoULxMXAQ4BBBsah2WYLYRsnQaPFoNXgQ0DjlObP4Mmgio
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: SIGKILL and TerminateProcess
Date: Tue, 29 Oct 2013 15:47:47 +0000
Message-ID: <5F8AAC04F9616747BC4CC0E803D5907D0C40AFEB@MLBXv04.nih.gov>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r9TFs2Vb032174

Hello List,

I have a question, as to why CYGWIN does not use the TerminateProcess approach when
dealing with SIGKILL sent to a process (in the manner the CYGWIN's own kill utility
does when invoked with -f)?  Usually SIGKILL is expected to reliably terminate
its victim (let alone it can't be intercepted, hence, does not need any "handling"
provisions).  Yet under CYGWIN, if the point of execution is found as "unsafe" in the
target process, the signal cannot be delivered quickly.  Such as when the process is busy dealing with a time-consuming Windows API (the dumbest example is Sleep() ;-),
then the process will not get killed even with SIGKILL.  Could CYGWIN please consider
special-casing SIGKILL to perform something similar to the force-killing of the
command-line utility?

Thanks,

Anton Lavrentiev
Contractor NIH/NLM/NCBI


--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019