I posted a question some time ago about how I could not gather the
process id from the sigaction. Andi Kleen gave a good answer that
the signal that was recieved has to be equal to or greater than
SIGRTMIN. Now before I go off and change SIGRTMIN to zero,
what effects will this have on my system? I did test what Andi said
and he's correct. If I send a signal >= SIGRTMIN, then my process
can see what process sent the signal. Currently I'm running at
kernel 2.2.13.
Basically the issue resolves around a robust signal handeling
function. It's EXTREMELY irritating to get debug logs back only to
find your process died from a signal, but no knowledge on who or
what sent the signal. So basically I want my signal handeling process
to gather all signals and then allow only certain processes to send it
a certain signal and log all other "invalid" signals and pid/proc names
to a log.
So basically by getting the pid I can figure out what process that is
sending the signal.
Chris Carver ( C :"