summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2000-11-21 22:40:59 +0000
committerjlemon <jlemon@FreeBSD.org>2000-11-21 22:40:59 +0000
commit8c110f84bfef92a5b18d9575abb0b80655511757 (patch)
treeb5522c538ebc08ff26f5e7eabe878ce608241d93 /lib
parent9361f42502df30233ca730fa4d4ef3543c41b774 (diff)
downloadFreeBSD-src-8c110f84bfef92a5b18d9575abb0b80655511757.zip
FreeBSD-src-8c110f84bfef92a5b18d9575abb0b80655511757.tar.gz
Fix a logic reversal: the RFFDG flag must be unset in order to share
a file descriptor table. (Thanks to Alan Cox) Clarify the fact that the changelist and eventlist can be shared.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/kqueue.29
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 15f4fd3..fb1ce1f 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -73,9 +73,9 @@ The queue is not inherited by a child created with
.Xr fork 2 .
However, if
.Xr rfork 2
-is called with the
+is called without the
.Dv RFFDG
-flag, the descriptor table is shared,
+flag, then the descriptor table is shared,
which will allow sharing of the kqueue between two processes.
.Pp
.Fn kevent
@@ -108,7 +108,10 @@ waits indefinitely. To effect a poll, the
.Fa timeout
argument should be non-NULL, pointing to a zero-valued
.Va timespec
-structure.
+structure. The same array may be used for the
+.Fa changelist
+and
+.Fa eventlist .
.Pp
The
.Va kevent
OpenPOWER on IntegriCloud