The topic has been discussed here before: siginfo.
In reply to Re: PID of signal sending process by salva in thread PID of signal sending process by dwaraka79