summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2015-05-02 00:29:27 +0000
committermarkj <markj@FreeBSD.org>2015-05-02 00:29:27 +0000
commit3af77c482a32d6774972e1313d176d4866d06992 (patch)
treeed1a4781fd16da8d81de5e2c0b822e82646fbe1a /lib
parent91f7fc5d99062167bf493b6cfc01aed2117078d8 (diff)
downloadFreeBSD-src-3af77c482a32d6774972e1313d176d4866d06992.zip
FreeBSD-src-3af77c482a32d6774972e1313d176d4866d06992.tar.gz
fork(2): Add a note to the effect that kqueue descriptors, unlike other
descriptor types, are not inherited from the parent process. Reported by: kmacy MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/fork.27
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/fork.2 b/lib/libc/sys/fork.2
index 1ad2052f..4fda74d 100644
--- a/lib/libc/sys/fork.2
+++ b/lib/libc/sys/fork.2
@@ -28,7 +28,7 @@
.\" @(#)fork.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd May 31, 2013
+.Dd May 1, 2015
.Dt FORK 2
.Os
.Sh NAME
@@ -53,7 +53,10 @@ The child process has a unique process ID.
The child process has a different parent
process ID (i.e., the process ID of the parent process).
.It
-The child process has its own copy of the parent's descriptors.
+The child process has its own copy of the parent's descriptors,
+except for descriptors returned by
+.Xr kqueue 2 ,
+which are not inherited from the parent process.
These descriptors reference the same underlying objects, so that,
for instance, file pointers in file objects are shared between
the child and the parent, so that an
OpenPOWER on IntegriCloud