Loading...
--- Libc/Libc-262/sys/sigwait.2
+++ Libc/Libc-583/sys/sigwait.2
@@ -35,7 +35,7 @@
.Sh SYNOPSIS
.In signal.h
.Ft int
-.Fn sigwait "const sigset_t *set" "int *sig"
+.Fn sigwait "const sigset_t *restrict set" "int *restrict sig"
.Sh DESCRIPTION
The
.Fn sigwait
@@ -53,8 +53,14 @@
.Pp
The signals specified by
.Fa set
-should be blocked at the time of the call to
+should be blocked, but not ignored, at the time of the call to
.Fn sigwait .
+.Pp
+Processes which call
+.Fn sigwait
+on ignored signals will wait indefinitely. Ignored
+signals are dropped immediately by the system, before delivery
+to a waiting process.
.Sh RETURN VALUES
If successful,
.Fn sigwait
@@ -71,12 +77,11 @@
specifies one or more invalid signal numbers.
.El
.Sh SEE ALSO
+.Xr pthread_sigmask 2 ,
.Xr sigaction 2 ,
.Xr sigpending 2 ,
.Xr sigsuspend 2 ,
-.Xr pause 3 ,
-.Xr pthread_sigmask 2
+.Xr pause 3
.Sh STANDARDS
.Fn sigwait
conforms to ISO/IEC 9945-1:1996 (``POSIX.1'')
-