Also be sure to look at using sigtrap
In reply to Re: Catching Kill Process by zentara in thread Catching Kill Process by Jabox