SIGCHLDs
SIGCHLD is a signal in POSIX-compliant Unix-like systems sent to a process when one of its child processes changes state. A child may terminate, be terminated by a signal, stop due to a job-control signal, or continue after being stopped. The signal serves as notification that the parent may need to examine or reap the child’s exit status.
Delivery and handling: The signal is delivered to the parent process of the child. The default action
Handling patterns: A typical approach is to install a handler for SIGCHLD and reap children with waitpid
Importance for process management: Reaping children prevents zombie processes and frees system resources. Because signal delivery
Notes and terminology: SIGCHLD is sometimes referred to in historical code as CLD. The plural notion SIGCHLDs