The type sigset_t represents a set of signals.
To create a set with the single signal, SIGCHLD:
- declare a sigset_t variable and initialize it (to be the empty set of signals)
- add the SIGCHLD signal to the sigset_t
Example:
sigset_t sset; sigemtpyset(&sset); sigaddset(&sset, SIGCHLD);