Commit 64942a41 authored by Jack Moffitt's avatar Jack Moffitt

select first argument should be 0 when we use it for sleeping.

svn path=/trunk/timing/; revision=2191
parent 5a4f55d7
......@@ -37,5 +37,10 @@ void timing_sleep(uint64_t sleeptime)
sleeper.tv_sec = 0;
sleeper.tv_usec = sleeptime * 1000;
select(1, NULL, NULL, NULL, &sleeper);
/* NOTE:
* This should be 0 for the first argument. The linux manpage
* says so. The solaris manpage also says this is a legal
* value. If you think differerntly, please provide references.
*/
select(0, NULL, NULL, NULL, &sleeper);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment