select.2: Clarify that 'timeout' is a *minimum* interval

Make it clear that 'timeout' is a minimum interval; the actual
interval will be rounded up to the system clock granularity,
and may overrun because of kernel scheduling delays.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2012-05-02 07:54:53 +12:00
parent aed1f3b9fb
commit 8c121f4004
1 changed files with 7 additions and 3 deletions

View File

@ -35,7 +35,7 @@
.\" 2005-03-11, mtk, modified pselect() text (it is now a system
.\" call in 2.6.16.
.\"
.TH SELECT 2 2010-08-31 "Linux" "Linux Programmer's Manual"
.TH SELECT 2 2012-05-02 "Linux" "Linux Programmer's Manual"
.SH NAME
select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \-
synchronous I/O multiplexing
@ -157,10 +157,14 @@ returns.
.I nfds
is the highest-numbered file descriptor in any of the three sets, plus 1.
.PP
The
.I timeout
is an upper bound on the amount of time elapsed before
argument specifies the minimum interval that
.BR select ()
returns.
should block waiting for a file descriptor to become ready.
(This interval will be rounded up to the system clock granularity,
and kernel scheduling delays mean that the blocking interval
may overrun by a small amount.)
If both fields of the
.I timeval
structure are zero, then