aboutsummaryrefslogtreecommitdiffstats
path: root/manual/signal.texi
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-01-29 08:58:51 +0000
committerUlrich Drepper <drepper@redhat.com>2002-01-29 08:58:51 +0000
commitafdef815547ff44caf8f65e7fd107ca482896284 (patch)
tree87b316378f05b05f467f123aaf6f9c8562b8e72e /manual/signal.texi
parent92f120d446433f74d4d2612587bb38a992050a04 (diff)
downloadtermbaud-afdef815547ff44caf8f65e7fd107ca482896284.tar.gz
termbaud-afdef815547ff44caf8f65e7fd107ca482896284.tar.xz
termbaud-afdef815547ff44caf8f65e7fd107ca482896284.zip
Update.
* manual/signal.texi (Process Signal Mask): Document that pthread_sigmask, not sigprocmask, must be used in MT programs. Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
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 59094023adc..903062f3c68 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})