Subject: Re: SA_SIGINFO notes
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 10/07/2003 13:45:03
On Oct 7, 10:41am, thorpej@wasabisystems.com (Jason Thorpe) wrote:
-- Subject: Re: SA_SIGINFO notes

| 
| On Tuesday, October 7, 2003, at 10:09  AM, Matthias Drochner wrote:
| 
| > 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.
| 
| So what is si_code going to be for SIGCHLD?  > 0, but yet it is not 
| generated by a trap, so I don't see how > 0 is a reliable test for 
| "generated by trap".

Same issue with SIGPOLL. So clearly the better solution is to keep the
information elsewhere.

christos