delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/08/20:16:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <045301c198ab$3659f820$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin AT cygwin DOT com>
References: <03ca01c197d9$8a16c510$0200a8c0 AT lifelesswks> <20020108002140 DOT GA12820 AT redhat DOT com> <03f001c197dd$7a9bec10$0200a8c0 AT lifelesswks> <013201c19812$2125e750$0200a8c0 AT lifelesswks> <20020108161950 DOT GC22944 AT redhat DOT com> <01a401c19892$2f5fa8d0$0200a8c0 AT lifelesswks> <20020109003913 DOT GA28328 AT redhat DOT com> <042a01c198a6$b03bb2a0$0200a8c0 AT lifelesswks> <20020109005523 DOT GA28659 AT redhat DOT com> <044301c198a8$8f0b61a0$0200a8c0 AT lifelesswks> <20020109011311 DOT GB28659 AT redhat DOT com>
Subject: Re: bash/cmd CTRL-C problem...
Date: Wed, 9 Jan 2002 12:16:04 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-OriginalArrivalTime: 09 Jan 2002 01:16:05.0155 (UTC) FILETIME=[35BDDF30:01C198AB]

----- Original Message -----
From: "Christopher Faylor" <cgf AT redhat DOT com>


> On Wed, Jan 09, 2002 at 11:57:04AM +1100, Robert Collins wrote:
> >----- Original Message -----
> >From: "Christopher Faylor" <cgf AT redhat DOT com>
> >
> >> So, I think the easiest fix for the current problem is just to do a
> >> 'signal (SIGINT, SIG_IGN)' prior to calling CreateProcess,
restoring
> >> the previous signal handler if the CreateProcess fails.
> >
> >You do realise, that thats what I've done, but via the more efficient
> >way of returning TRUE to the signal.
>
> Sure.  I understand what you are doing.  It usually only takes me a
> couple of tries to "get it".

:}. Lol.

> I'm specifically trying not to do the "TRUE" thing, though, since
AFAICT
> it isn't always appropriate.

If you want to SIG_IGN the signal, then it is:
"When a CTRL+C signal is received, the control handler returns TRUE,
indicating that it has handled the signal. Doing this prevents other
control handlers from being called."
(note that this is within this process only).

> For the record, I really appreciate your tracking this down.  I
finally
> understand the issues here.  These issues have been around for a long
time
> and the problems that you uncovered are probably responsible for some
> longstanding cygwin strangeness.

No probs.

Rob


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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