aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-05-25 17:49:50 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-07-07 01:27:13 +0000
commit5a5affd457eb3ab89b57c9c512a8843d9011133f (patch)
tree90203c04a7148d3c8283d7b2eda614f86f175104
parent1cced493289962858c961b06b161b44ca43e7ac7 (diff)
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
-rw-r--r--lib/libsys/pdfork.210
1 files 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