Xref capsicum(4) and procdesc(4) from pdfork(2).

Suggested by:	sbruno
MFC after:	3 days
This commit is contained in:
Robert Watson 2013-08-28 20:00:25 +00:00
parent 5ea1c4a2df
commit 7b223d2286

View File

@ -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 ,