Subject: Re: SA_SIGINFO notes
To: M.Drochner@fz-juelich.de, Matt Thomas <matt@3am-software.com>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 10/07/2003 13:18:26
On Oct 7,  7:09pm, M.Drochner@fz-juelich.de (Matthias Drochner) wrote:
-- Subject: Re: SA_SIGINFO notes

I agree, and I think that vax and powerpc should not set si_code == 0 for
kernel generated traps. I also think that a KASSERT() for that in trapsignal
would be appropriate.

christos

| matt@3am-software.com said:
| > > A simpler way, is to have trapsignal assert that si_code > 0, 
| > That won't work.  For arithmetic faults, both vax and powerpc use
| > a ksi_code of 0
| 
| This would be inconsistent with the documentation (siginfo(5)):
|      If si_code is less than or equal to zero, the signal was generated by a
|      user process or a user requested service:
|      SI_USER
|      [...]
|      SI_TIMER
|      [...]
|      SI_ASYNCIO
| 
| My proposed patch was motivated by exactly this sentence.
| 
| best regards
| Matthias
| 
-- End of excerpt from Matthias Drochner