sigaction ¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigaction.html
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
SIG_IGN for the SIGCHLD signal is equivalent
to a signal handler
void handle_child (int sigchld)
{
while (waitpid (-1, NULL, WNOHANG) > 0)
;
}
except that SIG_IGN for SIGCHLD has the effect that the children
execution times are not accounted in the times function.
On some platforms (BSD? SystemV? Linux?), you need to use the sigaction
flag SA_NOCLDWAIT in order to obtain this behavior.