aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/fork.2
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2015-05-02 00:29:27 +0000
committerMark Johnston <markj@FreeBSD.org>2015-05-02 00:29:27 +0000
commit93c9677b9487cf4c59b9754325ec454848d7380b (patch)
treeed1a4781fd16da8d81de5e2c0b822e82646fbe1a /lib/libc/sys/fork.2
parent9ad64f27be8788a6944f0a3cb90f91d8cfe46a0a (diff)
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
Notes
Notes: svn path=/head/; revision=282333
Diffstat (limited to 'lib/libc/sys/fork.2')
-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 1ad2052ff069..4fda74d605e7 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