delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/13/12:02:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 13 Nov 2000 11:56:56 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: signals?
Message-ID: <20001113115655.J7424@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20001001212519 DOT 00c09bb0 AT pop> <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20001001212519 DOT 00c09bb0 AT pop> <20001002114023 DOT H13304 AT cygnus DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20001113000139 DOT 00c3ba60 AT pop DOT bresnanlink DOT net>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <4.3.2.7.0.20001113000139.00c3ba60@pop.bresnanlink.net>; from cabbey@bresnanlink.net on Mon, Nov 13, 2000 at 12:16:14AM -0600

On Mon, Nov 13, 2000 at 12:16:14AM -0600, Chris Abbey wrote:
>the timewarp here is because this has been a "back burner" issue for me,
>and I've finally gotten back to it.
>
>At 10:40 10/2/00 -0400, Chris Faylor wrote:
>>On Sun, Oct 01, 2000 at 10:41:28PM -0500, Chris Abbey wrote:
>> >Does anyone out there really understand signal handling in cygwin?
>>Yes.  Intimately.
>
>EXCELLENT! :)
>
>>SIGQUIT != CTRL-BREAK.
>
>ok, very good point. I've gone back and looked at the code,
>for Windows it registers SIGBREAK instead of SIGQUIT as it
>does on every other platform, grrr.

There is no SIGBREAK in /usr/include/sys/signal.h.

>>Same as UNIX: sigprocmask, etc.
>
>suggestion for further reading?

No idea.  "man sigprocmask" on linux would probably be enlightening.

(Just to stop the inevitable suggestion from somebody:

"I think it would be a great idea if you included the man pages for all
of the functions that cygwin exports when you release cygwin.  Hope this
helps!")

>>Cygwin equates CTRL-BREAK with CTRL-C.  Both send a SIGINT to the process.
>
>but that doesn't jive with the behaviour I'm seeing. If I start the program
>and hit ctrl-Break it *starts* to execute the signal handler then get's killed.
>if I start the program and send it SIGINT via 'kill -SIGINT <pid>' then it
>just get's killed, the signal handler does not appear to be called at all.

Dunno.  Probably, you're sending more than one CTRL-BREAK.  It works fine for me.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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