Mail Archives: cygwin/2012/08/02/15:32:32
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_RX
|
X-Spam-Check-By: | sourceware.org
|
Message-ID: | <501AD5B9.5030005@gmail.com>
|
Date: | Thu, 02 Aug 2012 21:32:09 +0200
|
From: | Marcin Kielar <marcin DOT kielar AT gmail DOT com>
|
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
|
MIME-Version: | 1.0
|
To: | cygwin AT cygwin DOT com
|
Subject: | Ctrl+C not working with windows programs in Cygwin 1.7.16
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
|
Sender: | cygwin-owner AT cygwin DOT com
|
Mail-Followup-To: | cygwin AT cygwin DOT com
|
Delivered-To: | mailing list cygwin AT cygwin DOT com
|
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
- Raw text -