Fix sigtimedwait manpage.

Historically, sigtimedwait() blocks indefinitely if timeout is NULL.

Reviewed by:		jilles, imp
Differential Revision:	https://reviews.freebsd.org/D34985
MFC after:		2 weeks
This commit is contained in:
Dmitry Chagin 2022-04-21 10:52:29 +03:00
parent b91a48693a
commit 89ecdff2c3

View File

@ -27,7 +27,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd September 27, 2012 .Dd April 21, 2022
.Dt SIGTIMEDWAIT 2 .Dt SIGTIMEDWAIT 2
.Os .Os
.Sh NAME .Sh NAME
@ -70,7 +70,9 @@ If
.Fa timeout .Fa timeout
is the is the
.Dv NULL .Dv NULL
pointer, the behavior is unspecified. pointer,
.Fn sigtimedwait
blocks indefinitely.
.Dv CLOCK_MONOTONIC .Dv CLOCK_MONOTONIC
clock is used to measure the time interval specified by the clock is used to measure the time interval specified by the
.Fa timeout .Fa timeout
@ -204,3 +206,10 @@ and
.Fn sigwaitinfo .Fn sigwaitinfo
system calls conform to system calls conform to
.St -p1003.1-96 . .St -p1003.1-96 .
POSIX
leaves the behavior of
.Fn sigtimedwait
with a
.Dv NULL
.Fa timeout
pointer unspecified.