delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/30/04:11:22

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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=yg
MwXYvvDVIWqbKONnkmi83mIn+kfneAJGeHuiE1LA4Rv+sTY+QusBRyn/vwgrKuTu
gGR8nQNUbH6wt4CqPevUgeRnfYmzjvK06jtapeb5RRK0IAs7I5SYGXlvH8BIpT3M
XHMjBEGmgjKm6+nNehZ5RGShCuHmytPxW1rkzSP9w=
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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=RNWEJeiy
Y6TGPKi6dtASw4IigDE=; b=TbK1b/MrvCYwi9IntfJAMnVRU76f5aSGRCOlR9JZ
9d82q2/3BjSr5bXp32HrkI1WBZIKB2Q9KIlrn00SEMMEsXtMfXlXQMGFlj/qrNsB
KX1Nj0IVhF3StgAiu7F41akb/BhkzxUsFEq9LaaE6o8qxtHd+bZ8jxff9YO/OV+g
6I8=
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=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=faithful, H*i:sk:tQWze8L, H*f:sk:tQWze8L, pipeline
X-HELO: mail-yk0-f178.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=MH0OTuC6ikOrmjh4Jr4wX7wG4q8jttUwitFbSGjfGPQ=; b=Lm8vRLPlUz3JIoUMyWyb54N/7uX+UPR3OcYzfYvHPhH81tjlT7x5LVL4E9ZrsQ6DRC NgJd17STgJhDDPGtlSEth/SNq1cDp2SIxfYbQMrvHKps2VBLITGBraMKlUfRnR5m2Ws7 YlhA9gT9oTBnQGAWwQVShKQpS5N+Ry2KeRXe9JHPSIloWXMK+CS5kYm4+mzMt2Gldmnr 9YhVfyIfAlJk8k0cYrxEXg3vumjvJtYxkWEBAoduVsOgMoJDP0TcTEqxyYh6ACpcitED DL1h+v0n6NQoO2Mt/noAn1qTJlo0qBQxtrVG/n2IuViG1EZcYSGi1pmJI6QapVAAhnXP UTVw==
X-Gm-Message-State: ALoCoQkv7CG40iJJq6liN0MBv5XOMnuu5+tUTncLo7E9dm+R4UHIGahuDDFhVo6hcbiefwLhNT2J0gW+Yfm7ZUlNzcYqvIXBmA==
MIME-Version: 1.0
X-Received: by 10.129.119.87 with SMTP id s84mr48979494ywc.55.1451466662019; Wed, 30 Dec 2015 01:11:02 -0800 (PST)
In-Reply-To: <CAOC2fq99bWHVhrZm3_=tQWze8L92SbHdaGSiMZMbt0c9vML-0A@mail.gmail.com>
References: <f59f2316e04348b695666247fee14363 AT ntmaexbe04 DOT bedford DOT progress DOT com> <CAOC2fq83VZmh9WY4NQF+sSC-=YjJ8+g8+BhzWvHBcZ8+SgEkMg AT mail DOT gmail DOT com> <CAOC2fq99bWHVhrZm3_=tQWze8L92SbHdaGSiMZMbt0c9vML-0A AT mail DOT gmail DOT com>
Date: Wed, 30 Dec 2015 01:11:01 -0800
Message-ID: <CAOC2fq_72hLyyDE0BCv4z5jMNifS4H3+P5_kkvRO3QhAauptWw@mail.gmail.com>
Subject: Re: CTRL-C does not work in Cygwin when using pipes
From: Michael Enright <mike AT kmcardiff DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Wed, Dec 30, 2015 at 1:03 AM, Michael Enright  wrote:
> On Tue, Dec 29, 2015 at 2:57 PM, Michael Enright  wrote:
>> And since I have chosen to participate in this thread, I tried the
>> command in question. The success of my attempt does not mean that I
>> don't believe there's a problem. My setup is Windows 7/64 in a VM,
>> running 32-bit cygwin, mintty terminal and bash.
>
> Also Windows 10 (not yet updated to November update) 64-bit running
> 64-bit Cygwin, minty and bash was okay.
> Also, for fun, I tried this in Power Shell
>> $env:Path += ";C:\cygwin64\bin"
>> bash
> $ perl -e 'while(1) {sleep 1;}
>
> I was able to control-C out of this.
>
> (And now we all know the way to augment the path in Power Shell!)
>
> Not a recommended way to use Cygwin tools but I thought it was worth adding.

Okay on review the above is not faithful to the problem statement and
so I tried some variations:
In bash inside Power Shell,
 echo foo | perl -e 'while(1) {sleep 1;}'
Will hang.

The same command pipeline, under the condition of having the path
augmented as above, will perform as expected and control-C will stop
the program.

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