Subject: Re: SA_SIGINFO notes
To: Christos Zoulas <christos@zoulas.com>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 10/07/2003 09:45:39
On Tuesday, October 7, 2003, at 09:34  AM, Christos Zoulas wrote:

> On Oct 6,  9:54pm, thorpej@wasabisystems.com (Jason Thorpe) wrote:
> -- Subject: Re: SA_SIGINFO notes
>
> I was thinking about following suite with linux and defined
> SI_KERNEL as 0x80 and or'ing that in with si_code for kernel
> generated signals, but then we'll have to strip the SI_KERNEL
> bit before sending siginfo_t to userland. Another way it to
> use a separate field, that will have 3 different values:
>
> - caused by a trap
> - sent by the kernel, (io, timer, etc.)
> - sent from another process

I'm actually cooking up a patch right now that should address the 
problem with minimum intrusion.  Let's see how it turns out... I should 
be able to post it in an hour or so.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>