aboutsummaryrefslogtreecommitdiff
path: root/manual/signal.texi
diff options
context:
space:
mode:
Diffstat (limited to 'manual/signal.texi')
-rw-r--r--manual/signal.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/manual/signal.texi b/manual/signal.texi
index 5909402..903062f 100644
--- a/manual/signal.texi
+++ b/manual/signal.texi
@@ -2561,6 +2561,12 @@ by modifying the signal mask.
The prototype for the @code{sigprocmask} function is in @file{signal.h}.
@pindex signal.h
+Note that you must not use @code{sigprocmask} in multi-threaded processes,
+because each thread has its own signal mask and there is no single process
+signal mask. According to POSIX, the behavior of @code{sigprocmask} in a
+multi-threaded process is ``unspeficied''. Instead, use
+@code{pthread_sigmask} (@pxref{Threads and Signal Handling}).
+
@comment signal.h
@comment POSIX.1
@deftypefun int sigprocmask (int @var{how}, const sigset_t *restrict @var{set}, sigset_t *restrict @var{oldset})