DragonFly BSD
DragonFly commits List (threaded) for 2005-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/lib/libc/sys select.2


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 3 Aug 2005 08:13:41 -0700 (PDT)

:
: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 
:>   Log:
:>   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.
:
:Joerg

    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.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]