Hi,

I need to make an accurate monitoring of the child processes.

I have a signal handler which I can get the child data via siginfo_t structure hence its pid and I can understand if it is exited, killed, stopped an so on.

If the child (for example PID 2) is killed by another process (for example PID 100), in my signal handler I only can get the pid 2 not 100 instead which it's caused its dead.

I read that ptrace can inspect the child process behaviour but i don't know if it can trace all that a child process undergoes.

Does it exist way to do that ?



Regards