Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my process receive a SIGTERM signal, I used the API sigaction to get the sender.
But the sender is not exist in the system(after I got its pid).It seems the sender exit after sending the signal.
I want to know who is the sender, why it send a SIGTERM to me.

What I have tried:

The process is big, strace will not work.
Posted
Updated 6-Jul-16 21:46pm

1 solution

If a process has been terminated the PID is removed from the process table and you won't be able to get any informartion about the process.

If you want to investigate which process is killing yours, you can use a process monitoring tool that logs all processes that are started and stopped with their PID. Candidates might be pidstat(1): Report statistics for tasks - Linux man page[^], psacct / acct and sar.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900