delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/07/18:46:18

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
Date: Mon, 7 Jan 2002 18:45:55 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: CGF: please review my logic Re: bash/cmd CTRL-C problem...
Message-ID: <20020107234555.GA11984@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <00dc01c19758$02b30f10$c51811ac AT brokat DOT de> <1010394535 DOT 566 DOT 10 DOT camel AT lifelesswks> <011401c19762$04185fe0$c51811ac AT brokat DOT de> <000f01c19766$549cb8e0$0200a8c0 AT lifelesswks> <017b01c1976a$21451e70$c51811ac AT brokat DOT de> <007b01c1977d$6093f520$0200a8c0 AT lifelesswks> <20020107165105 DOT GB4652 AT redhat DOT com> <037a01c197cf$1d0a4000$0200a8c0 AT lifelesswks>
Mime-Version: 1.0
In-Reply-To: <037a01c197cf$1d0a4000$0200a8c0@lifelesswks>
User-Agent: Mutt/1.3.23.1i

On Tue, Jan 08, 2002 at 10:00:33AM +1100, Robert Collins wrote:
>----- Original Message -----
>From: "Christopher Faylor" <cgf AT redhat DOT com>
>> >It succeeds! (I'm running a slightly modified cygwin here, which as
>the
>> >patch at the end of this email shows (in combination with the source
>:})
>> >should always indicate if there is an error).
>>
>> It should always succeed.  A non-cygwin app should have a cygwin stub
>> associated with it.
>
>Did you read further down? I realised that... I was interested if you
>thought my hypothesis was feasible.

Not in any great detail, no.  I was addressing your apparent surprise over
the fact that getsem was able to retrieve a semaphore.

If you are looking for the "stub" code, it's in spawn_guts, around line
1078 in the current sources.

I'd suggest tracing what happens there.

cgf

>===
>So here's my best guess as to whats happening:
>When you hit CTRL-C, it propogates to
>signals.exe (handled as you expect)
>bash.exe (still attached to the console and gets handled via default
>signal handler - exit and terminate all subprocess's - which kills
>signals.exe)
>===
>
>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/

-- 
cgf AT redhat DOT com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.com/

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