Re: sigaction and SA_SIGINFO



On Jun 27, 9:05 am, sgsnews...@xxxxxxxxx wrote:
I'm trying to determine the process id which sent the signal:

It seems that 'info' in myAction is set to NULL when the signal is
SIGINT however
if the signal is SIGTERM it is not NULL - why?

Your code looks good to me. Well, except for the use of fprintf()
from a signal handler, possible format mismatch for pid_t and uid_t,
and the unspecified setUserSignalType() and setSysSignalType()
functions, but this is one-off testing code...

What OS and version is this on?


Philip Guenther

.