From 89ecdff2c32c4e8975f8652c5cb913eba8642204 Mon Sep 17 00:00:00 2001 From: Dmitry Chagin Date: Thu, 21 Apr 2022 10:52:29 +0300 Subject: [PATCH] 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.