summaryrefslogtreecommitdiffstats
path: root/man3/sigwait.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man/man3/sigwait.3 (renamed from man3/sigwait.3)9
1 files changed, 7 insertions, 2 deletions
diff --git a/man3/sigwait.3 b/man/man3/sigwait.3
index 2ac7d0e..f79c917 100644
--- a/man3/sigwait.3
+++ b/man/man3/sigwait.3
@@ -4,7 +4,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH sigwait 3 2023-10-31 "Linux man-pages 6.7"
+.TH sigwait 3 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
sigwait \- wait for a signal
.SH LIBRARY
@@ -36,6 +36,9 @@ function suspends execution of the calling thread until
one of the signals specified in the signal set
.I set
becomes pending.
+For a signal to become pending,
+it must first be blocked with
+.BR sigprocmask (2).
The function accepts the signal
(removes it from the pending list of signals),
and returns the signal number in
@@ -81,7 +84,9 @@ T} Thread safety MT-Safe
.SH VERSIONS
.BR sigwait ()
is implemented using
-.BR sigtimedwait (2).
+.BR sigtimedwait (2);
+consult its
+.BR NOTES .
.P
The glibc implementation of
.BR sigwait ()