Re: [Rd] Sys.sleep() burns up CPU on Solaris 8

2006-03-31 Thread Prof Brian Ripley
That looks like a Solaris quirk. Normalization of the values is not required by the POSIX standard, nor by the other implementations we have tested. The Solaris 7 man page does mention the restriction though. We will change it for 2.3.0, thank you. On Fri, 31 Mar 2006, Stephen C. Pope wrote:

[Rd] Sys.sleep() burns up CPU on Solaris 8

2006-03-31 Thread Stephen C. Pope
I noticed that R was burning up 100% of a CPU when a call to Sys.sleep() was made. Upon investigation, I discovered that R_checkActivityEx() in src/unix/sys-std.c was putting the entire timeout (in usec) into the struct timeval tv_usec member, leaving tv_sec set to 0. I don't know about other u