siginfo_t content

Christian Barthel bch at online.de
Fri Feb 15 16:43:37 UTC 2019


John Baldwin <jhb at FreeBSD.org> writes:

> See the siginfo(3) manpage.  SI_TIMER is described there as:
>
>     SI_TIMER             signal generated by expiration of a
>                          timer set by timer_settime(2)
>
> It is not for setitimer.  Similarly, si_addr is usually only specified for
> synchronous signals and usually holds the PC of the faulting instruction
> except for SIGSEGV when it holds the faulting virtual address.

Thanks for your reply. 
Ah, yes, siginfo(3) has more details on siginfo_t (missed that
one; sorry).  This clarifies my question.
I've looked up the POSIX standard but I haven't seen a reason why
si_addr is only set for SIGSEGV and "only" a few others - are
there reasons for this?

-- 
Christian Barthel <bch at online.de>


More information about the freebsd-chat mailing list