From nobody Tue Jul 7 01:57:21 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 4gvPVp36Xfz6kd9k for ; Tue, 07 Jul 2026 01:57:22 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gvPVn6K0rz3VN9 for ; Tue, 07 Jul 2026 01:57:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783389441; 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=lLSZZJq02sL2BIsdY44XoN7nGpfNBehG8xciASXLLfM=; b=tpVwYEZ/j11pjHuWh+yuoaQP7owCUdZCe8U5AZqvBK1mMO6yx45bXoCeSdkmmu+FihjFXb ccxbXCsT/18iVGv+DQHMRzyuA8mZi3NzqiLSkO/8taow0nlbIBfXzv0VertyXpiYJNMw1G 2NLzRoaeVZkG/+BtURGuLhD5LV4l5prd2YrBoYrqLofh6bVIE65cX9f31a5Ja2CScUVXWt Qr2QAfTnN7lfCOqCSXMRyBJY2x5Jj5kgOljVLMCr1g8CUPe8QgmmoKBcWNiwGOhkEI11wO JTw+Seh9rQ5An+uWSSmc8wzvtTFjKFI87PxLhAFuX5SN4wXB/cXdIwWj6oA8SA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783389441; a=rsa-sha256; cv=none; b=W5PBOEhRvq2xxR0NscvHCU+yvFWfaOvW2+pcFgUEn/jARUA/nnYXVOCbHetEGviXoJlCCc LcxtEVuw2LkMtkvDMGP7VqwBWyjuLY/C3pEpphrkeSxZ8pd2NAvzmQ7GIXwIDX/SFIz9Rn 5+N/ds4NJrjsFQEja7zpYHEgGv7V0ixrZ5vkAEf4vnR+98rNPzBpQjxBgD3a4z4+wMrXN6 /G9haWtH5uhpsMcKhNuRCelKlCJ5XJ+8UJ8HO5MV6yNyIsYcHIclvB9CjKnl3Dh8FW33Kp QQuLGfsGqlQLrGwWLy5z43Wynm4MHvCgF7imduV50jWiCvBxLZSpq6AfhFDszg== 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=1783389441; 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=lLSZZJq02sL2BIsdY44XoN7nGpfNBehG8xciASXLLfM=; b=N1+9+6MT4HNwO3dqNoAMt2qWvkPCVAKp9icW4XU4EQYHq6Wa3mticbxpWLbRcYrcF0TlmF uShoYViJUh2Rw5ZYViD0E6J2zko0F5QoSw/jBFqvTQRf2zWjsLsj36wBk0PVVEyouqlWuy 7GGScAeK0ibuGSQB/qqSYr4E2Ci/dDauSF9+37Wh7XHv24pLsNegxyZCQOW+rNATfF3vep 9t5leCAKl7v2BdBOBc6gLr1vc8l/3Rpw1llSLhxmKKSb0T/vUy/l6hhRRTwLmLioIiklvn uadNu7OuoJNe2pHl31Y807ved4yfmxkTR+pI88iP5jhrzdEDOrlVGEmOUbVTyA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gvPVn5D8mzPB for ; Tue, 07 Jul 2026 01:57:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f339 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 07 Jul 2026 01:57:21 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 5a5affd457eb - main - pdfork.2: clarify that PD_DAEMON acts on current file 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: 5a5affd457eb3ab89b57c9c512a8843d9011133f Auto-Submitted: auto-generated Date: Tue, 07 Jul 2026 01:57:21 +0000 Message-Id: <6a4c5d01.3f339.3a85656d@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=5a5affd457eb3ab89b57c9c512a8843d9011133f commit 5a5affd457eb3ab89b57c9c512a8843d9011133f Author: Konstantin Belousov AuthorDate: 2026-05-25 17:49:50 +0000 Commit: Konstantin Belousov CommitDate: 2026-07-07 01:27:13 +0000 pdfork.2: clarify that PD_DAEMON acts on current file Also do not start a new list for each flag item. Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D57124 --- lib/libsys/pdfork.2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/libsys/pdfork.2 b/lib/libsys/pdfork.2 index bf433509892a..6ebab24ff180 100644 --- a/lib/libsys/pdfork.2 +++ b/lib/libsys/pdfork.2 @@ -87,8 +87,14 @@ This option is not permitted in .Xr capsicum 4 capability mode (see .Xr cap_enter 2 ) . -.El -.Bl -tag -width ".Dv PD_DAEMON" +.Pp +Note: the option changes the behavior of +.Xr close 2 +for the process descriptor returned by the operation. +If there is another process descriptor for the same process, created without +specifying the +.Dv PD_DAEMON +flag, closing that descriptor kills the process. .It Dv PD_CLOEXEC Set close-on-exec on process descriptor. .El