Ctrl+C not working with windows programs in Cygwin 1.7.16
Thu Aug 2 19:34:00 GMT 2012
Steps to reproduce:
1. Start cygwin using cygwin.bat
2. Run `ping -t google.com`
3. Try breaking it with Ctrl+C
The ping breaks execution and the command prompt is shown and available
Nothing happens, ping loops until killed with `/usr/bin/kill -f PID`
a) If, in step #1 cygwin is started with mintty (using Cygwin
Terminal.lnk), Ctrl+C works as expected. Same with rxvt - ping breaks,
and command prompt is shown.
b) If, in step #1 cygwin is started with console2
(http://sourceforge.net/projects/console/), Ctrl-C behaves as in
"actual" - i.e. does not work. This is no surprise, as console2, runs a
hidden cmd.exe (which runs a cygwin.bat), so the behaviour should be the
same as in pure cmd.exe.
c) If, in step #2 a bat file is run, which in turn executes Java Virtual
Machine (a good example is an run.bat of the JBoss AS), Ctrl+C works as
- in mintty/rxvt it appears to break the execution
and a command prompt is show, however the JVM process keeps working
- in cmd.exe Ctrl+C does nothing
uname -srv: CYGWIN_NT-6.1-WOW64 1.7.16(0.262/5/3) 2012-07-20 22:55
os: Windows 7 Home Pro PL 64 bit, and Windows XP Professional PL, 32 bit
Greetings to everybody, as this is my first post here.
P.S. As for "run.bat" example for JBoss AS - I'm aware, there is a
run.sh script. The bat is just used to show the problem.
P.S/2 This was also confirmed on Cygwin 1.7.15 and the latest snapshot
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin