public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Ctrl+C not working with windows programs in Cygwin 1.7.16
@ 2012-08-02 19:34 Marcin Kielar
  2012-08-02 21:02 ` Daniel Colascione
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: Marcin Kielar @ 2012-08-02 19:34 UTC (permalink / raw)
  To: cygwin

Steps to reproduce:

1. Start cygwin using cygwin.bat
2. Run `ping -t google.com`
3. Try breaking it with Ctrl+C

Expected behaviur:
The ping breaks execution and the command prompt is shown and available

Actual behaviour:
Nothing happens, ping loops until killed with `/usr/bin/kill -f PID`

Variations:
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 
below:
   - 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

Other:
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.
Marcin Kielar

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 
(20120801)

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2012-08-07 15:25 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-02 19:34 Ctrl+C not working with windows programs in Cygwin 1.7.16 Marcin Kielar
2012-08-02 21:02 ` Daniel Colascione
2012-08-02 21:22   ` Roger K. Wells
2012-08-02 21:35     ` Daniel Colascione
2012-08-02 21:55       ` Roger K. Wells
2012-08-03 12:48         ` Nellis, Kenneth
2012-08-03 13:34           ` Roger K. Wells
2012-08-03 13:57             ` Christopher Faylor
2012-08-03 14:01               ` K Stahl
2012-08-02 23:03 ` Christopher Faylor
2012-08-02 23:10   ` Daniel Colascione
2012-08-03  3:05     ` Christopher Faylor
2012-08-03 12:58     ` Roger K. Wells
2012-08-03 13:51   ` Earnie Boyd
2012-08-03 13:53     ` marco atzeri
2012-08-03 14:00       ` Christopher Faylor
2012-08-03 14:08         ` Christopher Faylor
2012-08-03 14:33         ` Corinna Vinschen
2012-08-03 15:57           ` Christopher Faylor
2012-08-03 14:06       ` Earnie Boyd
2012-08-07  8:45       ` Andrey Repin
2012-08-07 10:35         ` marco atzeri
2012-08-07 11:00           ` Corinna Vinschen
2012-08-07 14:55             ` Andrey Repin
2012-08-07 15:56               ` Corinna Vinschen
2012-08-03 17:32 ` Christopher Faylor
2012-08-03 18:51   ` Roger K. Wells
2012-08-03 19:19   ` Marcin Kielar
2012-08-03 22:34     ` Earnie Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).