Subject: Re: standards question: SIGFPE handler return
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 03/08/2004 16:59:36
In article <001701c4052d$557f74a0$7c0b0b0a@strikeforce>,
Greywolf <greywolf@starwolf.com> wrote:
>: It is "undefined" for signals not generated by kill(2) et
>: al., so strictly speaking any of those would be ok. (Same
>: for SIGBUS, SIGILL, and SIGSEGV.)
>
>Is it possible to determine the difference between a signal which
>has been generated by kill(2) vs. one which has been simply incurred
>as a runtime result of stepping out of bounds or dividing by zero?
Look at siginfo(2) and SI_USER.
christos