From nobody Thu Apr 21 07:52:52 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3D13A198EBD6; Thu, 21 Apr 2022 07:52:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KkVBr5BN6z4gN6; Thu, 21 Apr 2022 07:52:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650527572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5mmoT8yNpuvtY8DMqw+tD5RDwPx8pc3LRRL0KrUeems=; b=ZlO0oSuuoAiA0ZsybmvFvsvxmo8PqpIniYQvCtDVtFd9wIFW9jHv5hhrETJ8q/6Mp2o6HE BKEVJElcD/OKkErZzINVTlWjP0i2nmDNFp7E2NNzx3J3FoT/+th1tgw8oXovG1PHOZX2rw /e6DEvGlvDMCpssPpsHmx9ZWbKysbcm8FDirG6XIJyn4nVHR3WYAm9NEVhadtdG/DvI979 V3TiHsCfVP8JvuBIbRzqQJil+kWCkaZHhgDpuRQ1Zjg1XE9/JbZWL0gI9hdR5R8f52Yg68 m4VENmZowGp2Jp+0THlFVtGz9dY0AvjkqqJlyxPWu2WGv7DGuhcr6r7FP9ZBVg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8724924918; Thu, 21 Apr 2022 07:52:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23L7qqYE027569; Thu, 21 Apr 2022 07:52:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23L7qqXZ027568; Thu, 21 Apr 2022 07:52:52 GMT (envelope-from git) Date: Thu, 21 Apr 2022 07:52:52 GMT Message-Id: <202204210752.23L7qqXZ027568@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: 89ecdff2c32c - main - Fix sigtimedwait manpage. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 89ecdff2c32c4e8975f8652c5cb913eba8642204 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650527572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5mmoT8yNpuvtY8DMqw+tD5RDwPx8pc3LRRL0KrUeems=; b=QEkx0G7XlHrIKOYkcRHfPneFrqspjJQQwXOoI9yXTVgysnwbMlJxQ/wwwVEDX1C+lBrY0O IowAnwmak3Enh6IOwEENi1BG5beiS70dDHg1qIJKw65w4TleQrJgSTX4gpikvKT8VC/Um3 gv1jRq3wSvwMl5h1ut6IcL+KsXLtjg0O+LPceTWSEURpFbXqehoTZJXgcJz/TldQbsFguk RIqfQUVw8laMKkZjWsyNlHVKYh3kInsUE3x2Orqd2IWdAEYgnNRWcDJD8FCLr1aRxYylsp wgRyIvmLr3Vxu30+o3clOCzsDi4shSM/6+JWn2lO7SSiFH/GAOZPElc2hV7igA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650527572; a=rsa-sha256; cv=none; b=bF5hGaW+HJ1uucqpgDxhcjj/Q2g71ArqJ5QMHbcDITlKFNALA5SAwF/JhTwSdMJb6L1FS5 rD13g+k9lmow4zSalYqPT1GzIAk7uAcR1AzPffk26LBYIPcfWGou8HkjYxMJ8XFjEPrrka 8T1Rh6fDI4paAOWGAyOIEOJ7lr5kMWwAuzZ+VU3uyIyUKZoYSZDG2If30fo2yXSWjpor72 YgExnuCph5JXsNWJ8p6b6SbzPiBC/8/NxwKdHM6WlODRUb7gBBreYSzy5E8YW2Bjph2HCc a6R3rx5PG9PkydKnieXaHlw2C4mI5Fmj9szj3QHdaiIGH/SHY6QoOoke1zhv9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=89ecdff2c32c4e8975f8652c5cb913eba8642204 commit 89ecdff2c32c4e8975f8652c5cb913eba8642204 Author: Dmitry Chagin AuthorDate: 2022-04-21 07:52:29 +0000 Commit: Dmitry Chagin 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.