80e3b2c6550852a09ce749d84590ff7d25b047cb
[gnulib.git] / doc / posix-functions / sigaction.texi
1 @node sigaction
2 @section @code{sigaction}
3 @findex sigaction
4
5 POSIX specification: @url{http://www.opengroup.org/susv3xsh/sigaction.html}
6
7 Gnulib module: ---
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @end itemize
12
13 Portability problems not fixed by Gnulib:
14 @itemize
15 @item
16 This function is missing on some platforms:
17 mingw.
18 @item
19 The symbolic value @code{SIG_IGN} for the @code{SIGCHLD} signal is equivalent
20 to a signal handler
21 @smallexample
22 void handle_child (int sigchld)
23 @{
24   while (waitpid (-1, NULL, WNOHANG) > 0)
25     ;
26 @}
27 @end smallexample
28 except that @code{SIG_IGN} for @code{SIGCHLD} has the effect that the children
29 execution times are not accounted in the @code{times} function.
30 On some platforms (BSD? SystemV? Linux?), you need to use the @code{sigaction}
31 flag @code{SA_NOCLDWAIT} in order to obtain this behavior.
32 @end itemize