X-Spam-Check-By: sourceware.org
Date: Sun, 21 May 2006 19:22:54 -0700
From: clayne@anodized.com
To: cygwin@cygwin.com
Subject: Re: 20060521 snapshot, Ctrl-C, and Windows processes
Message-ID: <20060522022254.GD13907@ns1.anodized.com>
References: <Pine.GSO.4.63.0605212209150.21697@access1.cims.nyu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.GSO.4.63.0605212209150.21697@access1.cims.nyu.edu>
User-Agent: Mutt/1.5.11
X-Assp-Spam-Prob: 0.00000
X-Assp-Whitelisted: Yes
X-Assp-Envelope-From: clayne@ns1.anodized.com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Sun, May 21, 2006 at 10:19:06PM -0400, Igor Peshansky wrote:
> Noticed a problem today: if you start a Windows process in bash and press
> Ctrl-C, the Ctrl-C will be delivered to the process, but then bash (or the
> Cygwin wrapper that waits for the Windows process) will simply hang until
> the Windows process terminates.  If the process does not terminate (e.g.,
> "ping -t"), bash will hang until Ctrl-C is pressed 10 times (the delays
> between the consecutive Ctrl-Cs don't seem to matter).
> 
> Steps to reproduce:
> 
> In bash, type "ping -t cygwin.com", then, after a couple of ping results,
> press Ctrl-C.  The process will hang (here's the screenshot):
> 
> $ ping -t cygwin.com
> 
> Pinging www.cygwin.com [209.132.176.174] with 32 bytes of data:
> 
> Reply from 209.132.176.174: bytes=32 time=82ms TTL=46
> Reply from 209.132.176.174: bytes=32 time=83ms TTL=46

I know this may sound insane, but could you try the following in another
shell when it is hanging:

ping localhost

or

ping <whatever your network interface ip is>

-cl

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

