System: Solaris 2.3/ Sparc 10/51
I seem to be having trouble getting information passed into
a signal interrupt handler. I want more than just the
signal number. According to the sigaction man page, I should be
able to do something like the following...
declare a signal handler function like so:
void sig_handler(int sig, siginfo_t *si, void *ctxt)
{
blah blah blah
install it like so:Quote:}
struct sigaction act, oact;
act.sa_sigaction = sig_handler;
act.sa_flags = SA_SIGINFO;
sigemptyset(&act.sa_mask);
sigaction(SIGPIPE, &act, &oact);
So, when a SIGPIPE (Also tried SIGINT) is generated I want
the siginfo structure in the handler to be non-NULL. However,
every time I generate the SIGPIPE or SIGINT (when installed)
the 2nd argument in the handler (struct siginfo *si) is always
NULL.
Any ideas what is happening, why can't I get this structure
to be non-NULL??
--
------------------------------------------------------------
Wyllys Ingersoll Interlock Developer
Reston, VA
------------------------------------------------------------