[prev in list] [next in list] [prev in thread] [next in thread]
List: cygwin-patches
Subject: Re: Allow to send SIGQUIT via Ctrl+BREAK (patch included)
From: Christopher Faylor <cgf-no-personal-reply-please () cygwin ! com>
Date: 2005-11-25 22:02:46
Message-ID: 20051125220246.GC12445 () trixie ! casa ! cgf ! cx
[Download RAW message or body]
On Fri, Nov 25, 2005 at 09:34:24PM +0100, Christian Franke wrote:
>Christopher Faylor wrote:
>>On Fri, Nov 25, 2005 at 08:43:43PM +0100, Christian Franke wrote:
>>>OK, let's forget the patch ;-)
>>
>>Actually, I have done some more testing myself and Windows doesn't work
>>the way that I remembered. It seems like CTRL-BREAK isn't handled by
>>signal(SIGINT, ...). So, I was wrong about this.
>
>MSVCRT maps CTRL-C to SIGINT, CTRL-BREAK to an extra SIGBREAK. So it
>is possible to map this to SIGQUIT with a simple hack:
>
>#ifdef SIGBREAK
>#undef SIGQUIT
>#define SIGQUIT SIGBREAK
>#endif
>
>This isn't possible with Cygwin (in notty mode), because CTRL-C and
>CTRL-BREAK cannot be distinguished.
I'm not sure why you're reexplaining this after I said I'd incorporate
the patch but I'm not concerned about making no-cygwin programs work. I
just didn't want to veer from what I thought was standard Windows
behavior in absence of any other standard.
cgf
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic