Date: Sat, 2 May 2015 00:29:28 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282333 - head/lib/libc/sys Message-ID: <201505020029.t420TSaH081093@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Sat May 2 00:29:27 2015 New Revision: 282333 URL: https://svnweb.freebsd.org/changeset/base/282333 Log: 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 Modified: head/lib/libc/sys/fork.2 Modified: head/lib/libc/sys/fork.2 ============================================================================== --- head/lib/libc/sys/fork.2 Sat May 2 00:27:58 2015 (r282332) +++ head/lib/libc/sys/fork.2 Sat May 2 00:29:27 2015 (r282333) @@ -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 I 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505020029.t420TSaH081093>