git: 5a5affd457eb - main - pdfork.2: clarify that PD_DAEMON acts on current file
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Jul 2026 01:57:21 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=5a5affd457eb3ab89b57c9c512a8843d9011133f
commit 5a5affd457eb3ab89b57c9c512a8843d9011133f
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-05-25 17:49:50 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
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