In the parent process, i used waitpid to wait child process to exit, and use the macros like WIFEXITED, WIFSIGNALED and WTERMSIG to determain the reason for exit. I also have to figure out which process send the signal, how can i do this?
I want to determain which process send the signal that makes the child process exit.
New contributor
yqq hqq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.