sigprocmask.2: Clarify that sigprocmask() operates on a per-thread mask

The first sentence of the page was vague on the scope of the
attribute changed by sigprocmask().  Reword to make this
clearer and add a sentence in NOTES to explicitly state that
the signal mask is a per-thread attribute.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-10-18 10:52:57 +02:00
parent 63c22325ed
commit 92ae39656e
1 changed files with 5 additions and 2 deletions

View File

@ -44,8 +44,9 @@ _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION
.BR sigprocmask ()
is used to change the signal mask,
the set of signals whose delivery is currently blocked for the caller
is used to fetch and/or change the signal mask of the calling thread.
The signal mask is the set of signals whose delivery is currently
blocked for the caller
(see also
.BR signal (7)
for more details).
@ -102,6 +103,8 @@ It is not possible to block
.BR SIGKILL " or " SIGSTOP .
Attempts to do so are silently ignored.
Each of the threads in a process has its own signal mask.
A child created via
.BR fork (2)
inherits a copy of its parent's signal mask;