Allow to send SIGQUIT via Ctrl+BREAK (patch included)
Christian Franke
Christian.Franke@t-online.de
Thu Nov 24 22:02:00 GMT 2005
Hi,
unlike Linux & friends, Cygwin cannot send a SIGQUIT via keyboard.
The SIGQUIT key simulated in termios does only work if app reads from
console.
Both console events ^C and ^BREAK are mapped to SIGINT.
Suggest to add some option to send SIGQUIT via ^BREAK.
A simple patch is attached.
It sends SIGQUIT on ^BREAK if both VINTR and VQUIT are set to ^C.
As a positive side effect, this disables any other SIGQUIT key in termios.
Testcase:
$ sleep 1000
[^BREAK]
$ ./stty quit ^C
$ sleep 1000
[^BREAK]
Quit (core dumped)
$ ./stty quit ^X
$ sleep 1000
[^BREAK]
$ echo Thanks for any comment
Thanks for any comment
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin-sigbreak-patch.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20051124/40b34dcf/attachment.txt>
More information about the Cygwin-patches
mailing list