From nobody Mon Sep 07 16:04:39 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 4hdsMq5hSTz6rdpm for ; Mon, 07 Sep 2026 16:04:39 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hdsMq53ycz3R8L for ; Mon, 07 Sep 2026 16:04:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788797079; 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=jcNIqJ6K0JgAkUauSyRcuT+IPdqnU5w7spKd0n/tb60=; b=wrNnsz3eIQqBZcpoGRh9UuARWD79DIuBw2MYBAeWCTbBg0T+n3/tRETa/pBafjwLGyM4jZ bjy434PNYfeAs0fvw+1ORKAyWlIt/c+3ik9aMg1L6BvDBW+R5qF+VUrxoaaJF7nsARi4F6 5OisfbhXziJa0zAimq/LlgZn83Wpx/0A5+r0wk20U2M58MqYAXLbSxw/cbdwUB82fo2UVh 3DBoBda70UV8t08XlJvlloUi7c1fULJKfPkxoXhhPCPM077XFKKZyHckvlEHz7l0jp9fSj vmGPkQEfO51X8YdRcmYb8iP7zw4xo0sioPdW5S7jxw2F3iV/23uPf5rb89uItg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1788797079; a=rsa-sha256; cv=none; b=qC2Re4ALb7QT4ljC7xwOzukWT6Oows69zMrGgdNKAZcQaVi5eAund4tHUXvJVwTqkuOa88 eLBayvpes8L21qnebwkGTsV4gioqJR/csT0zEOGs53+HJ0LKInEGIjLRYm+7oSpX1D3ojT 0ME5izOwpvYS8O76u7dudF+OKicDWwS2bg6SYm2kp+5x+IW5CCFvF2hhi9bgoHvwAbpEDs iGWrFSWRz4ujDmgMFswwJDMCrZDaFHNNY9kGktHwV1ezPTRuldy02dlGKBj8vBnZLxzgVr sa57cZJdp4bNYA2qvOyBqik1893h9obwnfKk3q90bNP5xSsE0pLmgawnvyhOYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788797079; 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=jcNIqJ6K0JgAkUauSyRcuT+IPdqnU5w7spKd0n/tb60=; b=E62SCxbfEbBOKiUO1FHSxkSJw+JqwyX3Ch+DQmK8dUSBzTgs9m4JZaTYtUHUxDb8WU7HaH P8XkHt1YHbEG8piv4EATVjiqJMlxJabsPUBv98HcG28nIMRmtmgIrX0z5DTdnKPWGw5zgF 6HXW8JAUyrM7n6MJY4x8dRefeDowcyhjYPPgfZDWzYOv/Wv/MnUxag5ayAUaIV1MWwB2fF IZZeM7ayDH+7NZ0Swhh/76mFLMBDhSdCdhoYsdmG/9bif5i4gS1+5rvXt9nHbBMRw9Zaa7 F0YMHUak03nseimhoLhQ5g7B/fpneclu709q1l4HQyQYuCGN6HAXg3YzjE2fNQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hdsMq414Zz98n for ; Mon, 07 Sep 2026 16:04:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1ebe3 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 07 Sep 2026 16:04:39 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 661d1135e4ed - main - pdfork.2: document kern.pdfork_implicit_nowaitpid List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 661d1135e4ed12d6017220ea654ae67a6956dc73 Auto-Submitted: auto-generated Date: Mon, 07 Sep 2026 16:04:39 +0000 Message-Id: <6a9ee097.1ebe3.763d5b1d@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=661d1135e4ed12d6017220ea654ae67a6956dc73 commit 661d1135e4ed12d6017220ea654ae67a6956dc73 Author: Konstantin Belousov AuthorDate: 2026-09-03 17:56:51 +0000 Commit: Konstantin Belousov CommitDate: 2026-09-07 16:04:00 +0000 pdfork.2: document kern.pdfork_implicit_nowaitpid Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D59349 --- 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