Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <020a01c19afa$b09faac0$0200a8c0@lifelesswks>
From: "Robert Collins" <robert.collins@itdomain.com.au>
To: <cygwin@cygwin.com>, "Andy Piper" <andyp@bea.com>
References: <4.3.2.7.2.20020111022918.00b63c68@san-francisco.beasys.com> <4.3.2.7.2.20020111044953.00b3aa38@san-francisco.beasys.com> <4.3.2.7.2.20020111065117.00b454b8@san-francisco.beasys.com>
Subject: Re: Ash spawning win32 programs (was Re: bash/cmd CTRL-C   problem...)
Date: Sat, 12 Jan 2002 10:50:02 +1100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
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: 11 Jan 2002 23:50:00.0172 (UTC) FILETIME=[AE6942C0:01C19AFA]

----- Original Message -----
From: "Andy Piper" <andyp@bea.com>
>
> Its a console app that happily responds to ^C. If you run it directly
from
> within bash then ^C works, so I assume from what you say above that
this is
> a bug of some description.

Have you tried the latest snapshot and confirmed that this still occurs?
If you have not done this then you are _not_ seeing ^C get handled by
the application. You are seeing cygwin terminate the process incorrectly
(as though Ctrl-Break was hit).

> I guess I don't understand why this is expected. It always used to
work
> (i.e. the subprocess would get killed also).

It's expected because win32 programs don't understand cygwin signals.
Console programs that appear to understand signals actually get told by
the OS when CTRL-C is hit on the console.

> >The key question here is : what semantics should apply to a _non
signal
> >aware program_ when cygwin detects a signal is generated for it?
> >
> >I.e., to pick a couple, for SIGINT and SIGKILL.
> >
> >One is obvious, we call (IIRC) TerminateProcess and *boom* it's gone.
> >Hope your work was saved.
>
> Er, why isn't it signal aware. It is AFAIK.

I thought this was obvious. Is it linked against cygwin1.dll? No? Then
it's not signal aware.

Signals are one of the cygwin additions to the win32 platform.

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/

