delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/05/13:46:29

X-Spam-Check-By: sourceware.org
Date: Wed, 5 Jul 2006 19:46:12 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Re: Ctrl-C issues with 1.5.20-1
Message-ID: <20060705174612.GQ18873@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20060704092948 DOT GD18873 AT calimero DOT vinschen DOT de> <44ABD1A6 DOT 5000805 AT acm DOT org> <20060705154130 DOT GP18873 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20060705154130.GP18873@calimero.vinschen.de>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Jul  5 17:41, Corinna Vinschen wrote:
> On Jul  5 07:50, David Rothenberger wrote:
> > On 11:59 AM, Corinna Vinschen wrote:
> > >On Jul  3 14:02, Auteria Wally Winzer Jr. wrote:
> > >>I noticed some very strange behavior with Ctrl-C. [...]
> > >>$ ping www.yahoo.com
> > >>PING www.yahoo.akadns.net (209.73.186.238): 56 data
> > >>bytes
> > >>Ctrl-C is not functioning...
> > >
> > >Thanks for the report.  I fixed it in CVS.  Check out the next developer
> > >snapshot from http://cygwin.com/snapshots/
> > 
> > ping now seems to drop all but the first packet.
> 
> Ok, I reverted the previous patch.  For now you have to live with Ctrl-C
> being unable to interrupt a hanging ping.  I'm going to revamp the
> socket handling in the next weeks anyway and I'm not quite ready to put
> more time into this single problem.

Btw., the problem can be circumvented in ping itself, by applying
the below patch.


Corinna


--- ping-1.0-1.c.orig	2006-07-05 19:45:23.452828500 +0200
+++ ping-1.0-1.c	2006-07-05 19:37:31.535938000 +0200
@@ -347,6 +347,7 @@ char *argv[];
 	setlinebuf( stdout );
 
 	signal( SIGINT, finish );
+	siginterrupt (SIGALRM, 1);
 	signal(SIGALRM, catcher);
 
 	/* fire off them quickies */

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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