delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/02/19:22:18

X-Spam-Check-By: sourceware.org
X-T2-Posting-ID: dCnToGxhL58ot4EWY8b+QGwMembwLoz1X2yB7MdtIiA=
X-Cloudmark-Score: 0.000000 []
Date: Sat, 3 Dec 2005 01:19:11 +0100
From: Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: SA_SIGINFO and signal info ?
Message-ID: <20051203001911.GQ10913@bouh.residence.ens-lyon.fr>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20051202230909 DOT GM10913 AT bouh DOT residence DOT ens-lyon DOT fr> <Pine DOT GSO DOT 4 DOT 63 DOT 0512021855380 DOT 8881 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.63.0512021855380.8881@slinky.cs.nyu.edu>
User-Agent: Mutt/1.5.9i-nntp
X-IsSubscribed: yes
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

Igor Pechtchanski, le Fri 02 Dec 2005 18:56:56 -0500, a écrit :
> > Cygwin defines SA_SIGINFO, but it doesn't seem to be implemented: the
> > following program gets in "info" just 0x0 or a strange pointer. Could
> > it be supported somehow? The bit of information I'd really need is
> > info->si_code, so as to know whether the signal is sent by "kernelspace"
> > (because of alarm, setitimer, ...) or by "userspace" (kill, raise).
> 
> AFAICS, this should work in the snapshots, according to
> <http://cygwin.com/ml/cygwin-cvs/2005-q3/msg00205.html>.

Ah indeed, it almost works. But pthread_kill still gives 0 as info to
the handler (and unfortunately, that's precisely the case I need)

Regards,
Samuel

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