sigaction.2: Clarify description of SA_NODEFER

Clarify description of SA_NODEFER, and note interaction with
act.sa_mask.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-11-14 07:48:58 +01:00
parent 66b961cab6
commit 06287aca29
1 changed files with 6 additions and 3 deletions

View File

@ -204,9 +204,11 @@ signal is generated in this case;
on some other implementations, it is not. on some other implementations, it is not.
.TP .TP
.B SA_NODEFER .B SA_NODEFER
Do not prevent the signal from being received from within its own signal Do not add the signal to the thread's signal mask while the
handler (i.e., do not add the signal to the thread's signal mask while the handler is executing, unless the signal is specified in
handler is executing). .IR act.sa_mask .
Consequently, a further instance of the signal may be delivered
to the thread while it is executing the handler.
This flag is meaningful only when establishing a signal handler. This flag is meaningful only when establishing a signal handler.
.IP .IP
.B SA_NOMASK .B SA_NOMASK
@ -1037,6 +1039,7 @@ prevents not only the delivered signal from being masked during
execution of the handler, but also the signals specified in execution of the handler, but also the signals specified in
.IR sa_mask . .IR sa_mask .
This bug was fixed in kernel 2.6.14. This bug was fixed in kernel 2.6.14.
.\" commit 69be8f189653cd81aae5a74e26615b12871bb72e
.SH EXAMPLES .SH EXAMPLES
See See
.BR mprotect (2). .BR mprotect (2).