diff options
author | Dmitry Chagin <dchagin@FreeBSD.org> | 2022-04-21 07:52:29 +0000 |
---|---|---|
committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2022-04-21 07:52:29 +0000 |
commit | 89ecdff2c32c4e8975f8652c5cb913eba8642204 (patch) | |
tree | ff0a436e8cb3a4bfa69d228343b0989a4a8531ae /lib | |
parent | b91a48693a53e02147119c7d9c729e695d8c0b7c (diff) | |
download | src-89ecdff2c32c4e8975f8652c5cb913eba8642204.tar.gz src-89ecdff2c32c4e8975f8652c5cb913eba8642204.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/sigwaitinfo.2 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/sys/sigwaitinfo.2 b/lib/libc/sys/sigwaitinfo.2 index b497592ed1f3..bb060811f5d7 100644 --- a/lib/libc/sys/sigwaitinfo.2 +++ b/lib/libc/sys/sigwaitinfo.2 @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd September 27, 2012 +.Dd April 21, 2022 .Dt SIGTIMEDWAIT 2 .Os .Sh NAME @@ -70,7 +70,9 @@ If .Fa timeout is the .Dv NULL -pointer, the behavior is unspecified. +pointer, +.Fn sigtimedwait +blocks indefinitely. .Dv CLOCK_MONOTONIC clock is used to measure the time interval specified by the .Fa timeout @@ -204,3 +206,10 @@ and .Fn sigwaitinfo system calls conform to .St -p1003.1-96 . +POSIX +leaves the behavior of +.Fn sigtimedwait +with a +.Dv NULL +.Fa timeout +pointer unspecified. |