summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2013-08-28 20:00:25 +0000
committerrwatson <rwatson@FreeBSD.org>2013-08-28 20:00:25 +0000
commit1dbe7f4b1088ab3386ca97086efe1af87ea6d9da (patch)
treecaa3785c49b8f8c9f01fdd67a64e6e2be89f880a /lib
parenta9feb8e8b996e9a105c5581728f136d650c732b3 (diff)
downloadFreeBSD-src-1dbe7f4b1088ab3386ca97086efe1af87ea6d9da.zip
FreeBSD-src-1dbe7f4b1088ab3386ca97086efe1af87ea6d9da.tar.gz
Xref capsicum(4) and procdesc(4) from pdfork(2).
Suggested by: sbruno MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/pdfork.222
1 files changed, 18 insertions, 4 deletions
diff --git a/lib/libc/sys/pdfork.2 b/lib/libc/sys/pdfork.2
index ad33566..26d0eb0 100644
--- a/lib/libc/sys/pdfork.2
+++ b/lib/libc/sys/pdfork.2
@@ -1,10 +1,14 @@
.\"
-.\" Copyright (c) 2009-2010, 2012 Robert N. M. Watson
+.\" Copyright (c) 2009-2010, 2012-2013 Robert N. M. Watson
.\" All rights reserved.
.\"
.\" This software was developed at the University of Cambridge Computer
.\" Laboratory with support from a grant from Google, Inc.
.\"
+.\" This software was developed by SRI International and the University of
+.\" Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
+.\" ("CTSRD"), as part of the DARPA CRASH research programme.
+.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@@ -28,7 +32,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd February 25, 2012
+.Dd August 28, 2013
.Dt PDFORK 2
.Os
.Sh NAME
@@ -71,7 +75,9 @@ Instead of the default terminate-on-close behaviour, allow the process to
live until it is explicitly killed with
.Xr kill 2 .
.Pp
-This option is not permitted in Capsicum capability mode (see
+This option is not permitted in
+.Xr capsicum 4
+capability mode (see
.Xr cap_enter 2 ) .
.El
.Pp
@@ -119,6 +125,12 @@ is set; if the process is still alive and this is
the last reference to the process descriptor, the process will be terminated
with the signal
.Dv SIGKILL .
+.Pp
+.Nm
+and associated functions depend on
+.Cd "options PROCDESC"
+described in
+.Xr procdesc 4 .
.Sh RETURN VALUES
.Fn pdfork
returns a PID, 0 or -1, as
@@ -156,7 +168,9 @@ for
.Xr fstat 2 ,
.Xr kill 2 ,
.Xr poll 2 ,
-.Xr wait4 2
+.Xr wait4 2 ,
+.Xr capsicum 4 ,
+.Xr procdesc 4
.Sh HISTORY
The
.Fn pdfork ,
OpenPOWER on IntegriCloud