On Tue, Oct 29, 2013 at 06:37:46PM +0000, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
CYGWIN lets me access some Windows-specific APIs (the same way one
would do by using some UNIX-flavor-specific libraries), without having
to port them all to CYGWIN first. Such code becomes a real problem in
pipelining because it cannot be reliably managed from other processes
(which would all require modifications to do TerminateProcess tricks
throughout; or use the special CYGWIN command-like utility) where just
kill(9) would have been sufficient..
To be a broken record: The whole point of Cygwin is to run UNIX based
programs on Windows. Asking for the addition of special-case code so
that people can use Windows functions in their programs completely
misses the point of this project.
That said, however, the Cygwin "kill" command does have a "-f" option
which forces the termination of a process if it can't be killed with
Cygwin's signal mechanism (I added it so that I could kill processes
that were hung while I was working on Cygwin's signal code). If it is
essential that you be able to summarily terminate Windows programs then
use that.