From: Simon Schubert Date: Wed, 3 Aug 2005 12:44:23 +0000 (+0000) Subject: Note that select behaves like sleep(3) when no descriptors are being checked. X-Git-Tag: v2.0.1~6387 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/56c95343287645266bb8be5eb17b46687c6f79a7 Note that select behaves like sleep(3) when no descriptors are being checked. --- diff --git a/lib/libc/sys/select.2 b/lib/libc/sys/select.2 index cc64f017bb..da5248b061 100644 --- a/lib/libc/sys/select.2 +++ b/lib/libc/sys/select.2 @@ -31,7 +31,7 @@ .\" .\" @(#)select.2 8.2 (Berkeley) 3/25/94 .\" $FreeBSD: src/lib/libc/sys/select.2,v 1.14.2.5 2001/12/14 18:34:01 ru Exp $ -.\" $DragonFly: src/lib/libc/sys/select.2,v 1.2 2003/06/17 04:26:47 dillon Exp $ +.\" $DragonFly: src/lib/libc/sys/select.2,v 1.3 2005/08/03 12:44:23 corecode Exp $ .\" .Dd March 25, 1994 .Dt SELECT 2 @@ -125,6 +125,12 @@ Any of and .Fa exceptfds may be given as nil pointers if no descriptors are of interest. +.Pp +Even if no descriptors are of interest, the timeout works as described, +effectively making +.Fn select +behave like +.Xr sleep 3 . .Sh RETURN VALUES .Fn Select returns the number of ready descriptors that are contained in