cvs commit: src/lib/libc/sys select.2
Matthew Dillon
dillon at apollo.backplane.com
Wed Aug 3 08:47:17 PDT 2005
:What should we write? It's just to note that select() does in fact
:block for the time specified, like sleep, usleep and nanosleep do (=
:interruptible sleep).
:
:cheers
: simon
I would just describe the operation. Something like:
When select is run without any descriptor sets, or with empty
descriptor sets, and the timeout is not NULL, it will still put
the process into an interruptable sleep for the specified timeout.
In BSD systems, select's timeout is typically rounded up to the
nearest tick (1/100 second typically).
Select's timeout operates in a manner similar to nanosleep,
but uses a timeval rather then a timespec structure. It should also
be noted that in DragonFly the nanosleep() call produces a far more
accurate sleep interval.
-Matt
Matthew Dillon
<dillon at xxxxxxxxxxxxx>
More information about the Commits
mailing list