From the previous section The sigaction structure, recall that one of the members of the sigaction structure is as follows:
/* Special flags. */ int sa_flags;
These special flags are very powerful. With them, the developer can precisely specify signal semantics that would otherwise be hard or impossible to obtain. The default value of zero implies no special behavior.
We shall first enumerate the sa_flags possible values in this table and then proceed to work with them:
sa_flag | Behavior or semantic it provides (from the man page on sigaction(2)). |
SA_NOCLDSTOP |
If signum is SIGCHLD, do not generate SIGCHLD when children stop or stopped children continue. |
SA_NOCLDWAIT | (Linux 2.6 and later) If signum is SIGCHLD ... |