git: 9b54abf7eed8 - stable/15 - pdfork.2: clarify that PD_DAEMON acts on current file

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a812491.44747.43e75597__3571.26578908122$1786848563$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=9b54abf7eed8fd06fe7d8cf27fe64d3d2d17d472

commit 9b54abf7eed8fd06fe7d8cf27fe64d3d2d17d472
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-05-25 17:49:50 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-16 02:41:23 +0000

    pdfork.2: clarify that PD_DAEMON acts on current file
    
    (cherry picked from commit 5a5affd457eb3ab89b57c9c512a8843d9011133f)
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.