summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2003-10-20 02:29:16 +0000
committerjmg <jmg@FreeBSD.org>2003-10-20 02:29:16 +0000
commita41bb92cf2be897e934752f3ee33715d5c31ea9e (patch)
tree214965429cca179d472a88ce5c4681681e919493 /lib
parent4c4e7a9593e78be47efad6a95369b92b18d64899 (diff)
downloadFreeBSD-src-a41bb92cf2be897e934752f3ee33715d5c31ea9e.zip
FreeBSD-src-a41bb92cf2be897e934752f3ee33715d5c31ea9e.tar.gz
document the fact that kqueue will immediately return and not timeout when
nevents is 0. PR: kern/45291
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/kqueue.28
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index d0abe55..73a760e 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -113,6 +113,14 @@ The
argument
determines the size of
.Fa eventlist .
+When
+.Fa nevents
+is zero,
+.Fn kevent
+will return immediately even if there is a
+.Fa timeout
+specified unlike
+.Xr select 2 .
If
.Fa timeout
is a non-NULL pointer, it specifies a maximum interval to wait
OpenPOWER on IntegriCloud