Comment Comment by hectorhector You can put a signal handler in your program to catch the SIGSTOP and run some code before it gets killed. parent hectorhector 5 years ago