From ee85cf8bb2a0e151c5fda55cee4964ba75418779 Mon Sep 17 00:00:00 2001 From: Jonathan Lemon Date: Tue, 21 Nov 2000 22:40:59 +0000 Subject: 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. --- lib/libc/sys/kqueue.2 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2 index 15f4fd344167..fb1ce1ff3be2 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 -- cgit v1.3