git: 39cc57ad6951 - stable/15 - pdfork.2: document kern.pdfork_implicit_nowaitpid

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 11 Sep 2026 01:10:27 UTC
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=39cc57ad6951d3980ee58d7c4114c96962fd86b9

commit 39cc57ad6951d3980ee58d7c4114c96962fd86b9
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-09-03 17:56:51 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-09-11 01:10:04 +0000

    pdfork.2: document kern.pdfork_implicit_nowaitpid
    
    (cherry picked from commit 661d1135e4ed12d6017220ea654ae67a6956dc73)
---
 lib/libsys/pdfork.2 | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lib/libsys/pdfork.2 b/lib/libsys/pdfork.2
index 1806158e668f..ce8919fb6119 100644
--- a/lib/libsys/pdfork.2
+++ b/lib/libsys/pdfork.2
@@ -114,6 +114,17 @@ Set close-on-exec on process descriptor.
 .It Dv PD_NOWAITPID
 The parent cannot obtain the child's status with
 .Xr waitpid 2 .
+.Pp
+A consequence of not setting the flag is that the child' zombie is
+not reaped until the
+.Xr waitpid 2
+call is performed on the child' PID.
+Setting the
+.Dv
+kern.pdfork_implicit_nowaitpid
+sysctl MIB to
+.Dv true
+makes the system behave as if the flag is always passed.
 .It Dv PD_PTRACE_CAP
 Enable
 .Xr pdptrace 2