git: 89ecdff2c32c - main - Fix sigtimedwait manpage.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 07:52:52 UTC
The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=89ecdff2c32c4e8975f8652c5cb913eba8642204 commit 89ecdff2c32c4e8975f8652c5cb913eba8642204 Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2022-04-21 07:52:29 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-04-21 07:52:29 +0000 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 --- lib/libc/sys/sigwaitinfo.2 | 13 +++++++++++-- 1 file 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.