This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SIGINT generated by Control-C, is not delivered in mintty


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

Attachment: cygcheck.out
Description: Binary data

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]