[uClibc]sleep issue?

Erik Andersen andersen at codepoet.org
Fri May 16 17:27:58 UTC 2003


On Fri May 16, 2003 at 06:42:45AM -0700, Steven Seeger wrote:
> I'm using 0.9.19, from the release version I believe. I used the script to
> build the toolchain.

This was fixed just a few days ago.  Be sure you build the
toolchain with "USE_UCLIBC_SNAPSHOT=true" set in the top level
Makefile, and do a 'rm sources/dl/uClibc*' before building or it
will use whatever you have already downloaded (i.e. an older
version without the fix).

$ cvs log libc/unistd/sleep.c | grep "revision 1.6" -A10
revision 1.6
date: 2003/05/14 05:10:58;  author: davidm;  state: Exp;  lines: +4 -2

Sleep was returning the wrong value because:

* nanosleep returns the remaining time,  not the time slept

* nanosleep only fills out the remaining time if it returns -1 (ie., the
  sleep was interrupted)

Fix from Paul Dale <pauli at snapgear.com>

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--


More information about the uClibc mailing list