From 92ae39656e651297cba315b5776041b0c6f9c6a3 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 18 Oct 2008 10:52:57 +0200 Subject: [PATCH] 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 --- man2/sigprocmask.2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man2/sigprocmask.2 b/man2/sigprocmask.2 index 2691605b2..f0ed96246 100644 --- a/man2/sigprocmask.2 +++ b/man2/sigprocmask.2 @@ -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;