From nobody Thu Nov 19 10:57:55 2026 X-Original-To: dev-commits-src-all@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 4jVb6C2GN9z72Nbj for ; Thu, 19 Nov 2026 10:57:55 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jVb6C1f5kz3GnF for ; Thu, 19 Nov 2026 10:57:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795085875; 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=NvtqblBrPCkMU1x0FQTzjftgA0RjiIcjPsbZHotNxMQ=; b=pXn45hsXqR5U8y5s7ktRuKGvSo6vx/P+da6Rk7BDm8G9OIESizJCaxG38J7qzFHd+m8aI2 cAXofLTBeBKT0Jl261qt1Ccpo4N4zRt5VzDtUx5ggmtaJQH2dTB2HCeSP+SXzV+/10bwTW LAdXNU2IpAUEDYs1xZb8gCTy67r3RlfDYvhrVQgCWFmnMLX3Fbp1iIvf5QDAID7jz1Dsf3 8DQ1o+bfS3auzlfBcDWmdWs5g7A3crkvH3ZNwKewfaIYTnypsmk18X/zsHW2clnmyt9a46 zmBQ1067ZdYOUxieipFdQKhOL+rGmpMKBzZqHhDNGOROyTbATaLSMiKkz34URg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795085875; b=Jzx7wgsaHqiRsIZQiLpMGdUpfFDut3lqhwpadAKe5pPeVMEJjESFX2goZkpygNdLxQz9Y6 8ppKz/xqldZidZ7DMsqYKDXx7M4QGDKs+d7Aar17pMgckHF/nZhGGn2eDF4ybBN+ks0O2f gJjYTA89M10I1mB56AQWb1OfB8kXbmi/MR6iFY2b0eL7c8uoj4WiuJIFYWxtDdkbFGktfo GpmNy7nXTEVCftXs6BS4lZieqNd/vQCjXImVm/W6lhF2rWFb7mxjbtCGJtkCh5GvRz/v8C rxGyeOyHRUUaNIkYYlzNYEQR51JIH4/rov+rOtGmlmBqCHUCMwp6Kvj02oP42Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795085875; 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=NvtqblBrPCkMU1x0FQTzjftgA0RjiIcjPsbZHotNxMQ=; b=II+eEdTDmsY9W+LoXrAq7kSu1ZuIaesoSPd5wyPQut+OsKuEm0hh99c4tWkiZgDBiQpgnp XlCOK6Cjo81u6cm8Q8La2o6BcOqDtdYYnbz1/9nwqUXr+rMyfPDjqH+SnyiRpP9W9sYQ5G Riyxsc3pt/6japbmcStzpwK9zypqSqE92RN6/KZUmCmINZofQ89pEZdcWMgQJ9uwgdMZph iv9M9lkyXImtPGIqfdD8X9snHGo/jPD633iIBwUrt7Kn56+/fQQR5X4rz5HNLia6m1N3xC IW5thtTHqrBacZ4MOvZbpoKK8Mp21cmLJmGyleaHgHzSuslb7p4DERYs2Dw0Hw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jVb6C0yzWzy0g for ; Thu, 19 Nov 2026 10:57:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id f1ef by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 19 Nov 2026 10:57:55 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wolfram Schneider Subject: git: 503c26d0562c - main - pdfork.2: always use .Xr macro for references to other manual pages List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 503c26d0562c8b69fd8903306f753568fc701902 Auto-Submitted: auto-generated Date: Thu, 19 Nov 2026 10:57:55 +0000 Message-Id: <6afed633.f1ef.3f02d066@gitrepo.freebsd.org> The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=503c26d0562c8b69fd8903306f753568fc701902 commit 503c26d0562c8b69fd8903306f753568fc701902 Author: Wolfram Schneider AuthorDate: 2026-11-19 10:56:07 +0000 Commit: Wolfram Schneider CommitDate: 2026-11-19 10:56:07 +0000 pdfork.2: always use .Xr macro for references to other manual pages Approved by: des Differential Revision: https://reviews.freebsd.org/D61745 --- lib/libsys/pdfork.2 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/libsys/pdfork.2 b/lib/libsys/pdfork.2 index 124ec04ea059..6c4ebf34309a 100644 --- a/lib/libsys/pdfork.2 +++ b/lib/libsys/pdfork.2 @@ -313,7 +313,7 @@ is reaped, and all its process descriptors are closed. A debugger attached by .Xr ptrace 2 can execute the -.Fn waitpid +.Xr waitpid 2 calls against the alive target regardless of the way the target process was forked. .Ss Interaction of Process Descriptors with other System Calls @@ -357,7 +357,7 @@ The PID of the referenced process is not reused until the process descriptor is closed, whether or not the zombie process is reaped by .Fn pdwait , -.Fn wait6 , +.Xr wait6 2 , or similar system calls. .Sh RETURN VALUES .Fn pdfork @@ -392,13 +392,13 @@ Note that the child process was already created when this condition is detected, and the child continues execution, same as the parent. If this error must be handled, it is advisable to memoize the -.Fn getpid +.Xr getpid 2 result before the call to .Fn pdfork or .Fn pdrfork , and compare it to the value returned by -.Fn getpid +.Xr getpid 2 after, to see if code is executing in parent or child. .It Bq Er EINVAL The signal number given to @@ -502,10 +502,13 @@ capability enabled. .Xr close 2 , .Xr fork 2 , .Xr fstat 2 , +.Xr getpid 2 , .Xr kill 2 , .Xr kqueue 2 , .Xr poll 2 , .Xr wait4 2 , +.Xr wait6 2 , +.Xr waitpid 2 , .Xr capsicum 4 , .Xr procdesc 4 .Sh HISTORY