My (?:m(?:is)?)?adventures in the world of POSIX signals continue.

Now to followup on my own patch of two years ago [1], here is support
for SA_SIGINFO (see man sigaction), which allows additional information
to be passed on to the signal handlers (beyond the signal number).

I am not entirely proud of the argument passing scheme to the signal
handler (the name of the signal, a hash ref with the POSIX/SUSv3 fields
unpacked, and the binary blob of the whole siginfo struct) but I tried
to find a solution somewhere between being a POSIX purist and a portable
pragmatist.

[1]
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-06/msg00559.html

Here's the patch.

Attachment: siginfo.pat.v1.gz
Description: GNU Zip compressed data

Reply via email to