aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/pdfork.2
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2016-06-08 02:09:14 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2016-06-08 02:09:14 +0000
commitb3a734483e9263c26570003a96701df3d7538048 (patch)
tree4a66f3894cb509b4c2355cc20ab8eae477485ab2 /lib/libc/sys/pdfork.2
parent920be817aaee95cbe5c3bc11b33426c22b773a3f (diff)
downloadsrc-b3a734483e9263c26570003a96701df3d7538048.tar.gz
src-b3a734483e9263c26570003a96701df3d7538048.zip
Introduce the PD_CLOEXEC for pdfork(2).
Reviewed by: mjg
Notes
Notes: svn path=/head/; revision=301573
Diffstat (limited to 'lib/libc/sys/pdfork.2')
-rw-r--r--lib/libc/sys/pdfork.26
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/sys/pdfork.2 b/lib/libc/sys/pdfork.2
index e057f769b89e..5f1a86e3b961 100644
--- a/lib/libc/sys/pdfork.2
+++ b/lib/libc/sys/pdfork.2
@@ -32,7 +32,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 7, 2014
+.Dd June 8, 2016
.Dt PDFORK 2
.Os
.Sh NAME
@@ -80,6 +80,10 @@ This option is not permitted in
capability mode (see
.Xr cap_enter 2 ) .
.El
+.Bl -tag -width ".Dv PD_DAEMON"
+.It Dv PD_CLOEXEC
+Set close-on-exec on process descriptor.
+.El
.Pp
.Fn pdgetpid
queries the process ID (PID) in the process descriptor