delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/03/09:43:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20120802230013.GB6793@ednor.casa.cgf.cx>
References: <501AD5B9 DOT 5030005 AT gmail DOT com> <20120802230013 DOT GB6793 AT ednor DOT casa DOT cgf DOT cx>
Date: Fri, 3 Aug 2012 09:43:13 -0400
Message-ID: <CA+sc5mkhf+Ri1QOoFSTpn0xs0HeibpCo548rp67Th92Y4Sq-LQ@mail.gmail.com>
Subject: Re: Ctrl+C not working with windows programs in Cygwin 1.7.16
From: Earnie Boyd <earnie AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Thu, Aug 2, 2012 at 7:00 PM, Christopher Faylor wrote:
> On Thu, Aug 02, 2012 at 09:32:09PM +0200, Marcin Kielar wrote:
>>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`
>
> I don't have a "cygwin.bat" but if I start bash via Start->Run this
> works for me.  ping is interrupted by CTRL-C.
>

If executed from mintty CTRL-C works to interrupt the process.  If
executed from a Windows console terminal (and I don't mean cmd.exe)
ping doesn't interrupt with CTRL-C.  Another interesting thing, ``run
bash --login -i'' starts the process but the Window closes with the
process in the background and I have to use the Task Manager to kill
it, Cygwin's kill doesn't kill it.  However ``run mintty'' works
regardless.

$ uname -a
CYGWIN_NT-6.1-WOW64 HAL2002 1.7.16(0.262/5/3) 2012-07-20 22:55 i686 Cygwin

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019