SIGINT generated by Control-C, is not delivered in mintty
Ronald Fischer
ynnor@mm.st
Tue Jul 14 07:44:00 GMT 2015
Using Cygwin 64 on Windows 7:
In a bash or zsh running inside mintty, pressing Control-C has no
effect. In a bash or zsh running in a Windows Console, it works fine.
This can be verified in two ways:
(1) Using 'trap':
In the shell, we do a
trap 'echo trapped' INT
Now whenever we hit Control-C, we expect "trapped" to be printed on
stdout. This is not the case when the shell runs inside mintty.
(2) Using 'cat':
In the shell, we do a
cat
which has the effect that cat reads from stdin. A control-C should abort
it. Again, this doesn't work when we run inside mintty.
Note that in the latter case, Control-D (EOF) is delivered correctly
also inside mintty. The problem is therefore not with the
control-characters generated by the keyboard, but indeed with delivering
the signal.
Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 176892 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150714/7ffe9015/attachment.obj>
-------------- next part --------------
--
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
More information about the Cygwin
mailing list