nanosleep

Darren Tucker dtucker at zip.com.au
Wed Feb 26 17:53:07 EST 2003


Jim Knoble wrote:q
> nanosleep() is a system call under OpenBSD.  Perhaps it could be
> defined in terms of usleep(), with a slight loss of precision?

If you're going to build a nanosleep replacement shouldn't you use
select()?  It's already used in openssh so it's guaranteed to be on any
currently working platform.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list