cvs commit: src/lib/libc/sys select.2
dillon at apollo.backplane.com
Wed Aug 3 08:14:41 PDT 2005
:On Wed, Aug 03, 2005 at 05:44:23AM -0700, Simon Schubert wrote:
:> corecode 2005/08/03 05:44:23 PDT
:> DragonFly src repository
:> Modified files:
:> lib/libc/sys select.2
:> Note that select behaves like sleep(3) when no descriptors are being checked.
:Please correct it to point to usleep or nanosleep, that comparision is
:much more appropiate.
Even nanosleep and usleep are wrong, since nanosleep uses a struct timespec
and select uses a struct timeval.
Select's timeout is rounded up to the nearest clock tick, while (our)
nanosleep's timeout tries to be a lot more precise.
<dillon at xxxxxxxxxxxxx>
More information about the Commits