delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/07/15/04:24:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:mime-version
:content-transfer-encoding:content-type:in-reply-to:references
:subject:date; q=dns; s=default; b=fEd5uxrb6W3EGP5CKZ2p7+Wj6DVmc
Q35Q3deXNbrabCbqmQE+fcqGuoHa/dodged53KPuChsnpFHv4o5QS8yRDvxs26Q0
0R9QD67e7NP+Cl7flm38s4ksPx+4n4f2APQxr0aK20Rm4mPQLfyqYTkeLNgISBse
Rwtg99yHYMCtLg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:mime-version
:content-transfer-encoding:content-type:in-reply-to:references
:subject:date; s=default; bh=k7BbNrrKLARHAn+RnCmhxeJUHWc=; b=V/2
q+fsPiasien0n7dQ4GPfAtdW6ZVS8xp6bQq0iLuovNTZBGsF84NjNjDst8+u18fd
eNLzI5u0b7pCivd5sgZoHYkpShU+UPanof1ElX2/ybMzIpHren5qSLpM75Fqa9oh
mo/MzfXxRNLs+x3eGqP0DQceZWmzlBv1TPigYtvw=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: out1-smtp.messagingengine.com
Message-Id: <1436948655.3972399.324148201.7F412623@webmail.messagingengine.com>
From: Ronald Fischer <ynnor AT mm DOT st>
To: Achim Gratz <Stromeko AT NexGo DOT DE>, cygwin AT cygwin DOT com
MIME-Version: 1.0
In-Reply-To: <loom.20150714T111732-325@post.gmane.org>
References: <loom DOT 20150714T111732-325 AT post DOT gmane DOT org>
Subject: Re: SIGINT generated by Control-C, is not delivered in mintty
Date: Wed, 15 Jul 2015 10:24:15 +0200

On Tue, Jul 14, 2015, at 11:27, Achim Gratz wrote:
> Ronald Fischer <ynnor <at> mm.st> writes:
> > 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.
> 
> WJFFM.  Make sure that the stuff in GW (GNUwin?) and Linux64 does not
> interfer.  Also, you have multiple cygwin1.dll on your path (p/nano), fix
> that and see if it makes any difference.

Good point, but did not help:

I have removed the GNUwin Utilities and the path to my second
cygwin1.dll from my PATH (which is a good idea anyway), verified it, and
repeated the test - same result.

Next - to be really sure that we don't have any interference - I did a

   PATH=/usr/bin mintty

and inside mintty did a

  echo $PATH

to verify, that I really have only /usr/bin in my PATH, and here too,
the same effect - Control-C not delivered.

BTW, the last time I worked with mintty (on a different project) - it
was about 3 years ago - it worked fine, so I guess the bug sneaked in
recently.

Ronald

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