kill -2 is too powerful

Christopher Faylor
Fri Jul 13 14:29:00 GMT 2007

On Thu, Jul 12, 2007 at 11:58:15PM -0700, patrickinminneapolis wrote:
>I have a Console App which catches "Ctrl-C" and then gives the
>user an option "e(x)it \ (r)un".  I learned that I needed to set CYGWIN
>= "notty" and so now the console app catches Ctrl-C properly within a
>Cygwin console.  I need to run the program as a service however, net
>start IB, and then I use pslist to view its process number and do a
>kill -2 PID I was hoping for my exit/run prompt, but it terminated
>instead.  Does anyone know what's going on or a better way to do this
>without reprogramming the VB.NET code?

Cygwin kills non-cygwin processes when it is processing an unhandled
CTRL-C.  It's worked that way for years and I, for one, rely on that

This is one case where we can't accommodate native windows programs

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list