This is the mail archive of the
cygwin
mailing list for the Cygwin project.
SIGKILL and TerminateProcess
- 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>
- Date: Tue, 29 Oct 2013 15:47:47 +0000
- Subject: SIGKILL and TerminateProcess
- Authentication-results: sourceware.org; auth=none
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