From 3af77c482a32d6774972e1313d176d4866d06992 Mon Sep 17 00:00:00 2001 From: markj Date: Sat, 2 May 2015 00:29:27 +0000 Subject: 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 --- lib/libc/sys/fork.2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.1