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: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 3 Aug 2005 17:33:51 +0200

On 03.08.2005, at 17:13, Matthew Dillon wrote:
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.

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).


Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low $$$ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

Attachment: PGP.sig
Description: This is a digitally signed message part

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