when a child process is terminated by a signal, how can i tell which process send the signal in parent process
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?