SIGCHLD is delivered to parents in the following cases:
- The child process is running.
- The child process is stopped by the signals SIGSTOP, SIGTSTP, SIGTTIN or SIGTTOU
- Baby process resumes with SIGCONT signal
I would suggest that SIGSTOP / SIGCONT is what wikipedia means βinterruptedβ.
The default handler for SIGTERM is the end of the process. Therefore, if a parent sends SIGTERM to a child process that terminates this child, then yes - the parent will receive SIGCHLD.
If the child establishes a signal handler that does not complete it, the parent line signal will not be passed to the parent element.
source share