2 @section @code{sigaction}
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaction.html}
7 Gnulib module: sigaction
9 Portability problems fixed by Gnulib:
12 This function is missing on some platforms:
16 Portability problems not fixed by Gnulib:
19 POSIX recommends that when specifying SA_RESETHAND, SA_NODEFER must
23 Support for SA_ONSTACK is missing on some platforms:
24 mingw, MSVC 14, cygwin.
27 Support for SA_SIGINFO is missing on some platforms:
31 Support for SIGCHLD, and thus for SA_NOCLDSTOP and SA_NOCLDWAIT, is
32 missing on some platforms:
36 Support for SA_RESETHAND is missing on some platforms:
40 Support for SA_RESTART is missing on some platforms:
41 mingw, MSVC 14, NonStop.
44 The symbolic value @code{SIG_IGN} for the @code{SIGCHLD} signal is equivalent
47 void handle_child (int sigchld)
49 while (waitpid (-1, NULL, WNOHANG) > 0)
53 except that @code{SIG_IGN} for @code{SIGCHLD} has the effect that the children
54 execution times are not accounted in the @code{times} function.
55 On some platforms (BSD? SystemV? Linux?), you need to use the @code{sigaction}
56 flag @code{SA_NOCLDWAIT} in order to obtain this behavior.