I'm having some problem with my app on Debian Lenny system. I have 16 instances running and one or two of them may receive a SIGTERM signal somewhere from the system.
I'm wondering if there is a way of tracing the signal to it's originator so I can see where it's coming from?
IIRC if you have your app register for SIGTERM via sigaction() instead of signal(), the struct siginfo_t that you get contains enough information to tell you the originating PID.