From 7ba17e328559ae099272f713d063daa1ff194faf Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Sat, 20 Oct 2001 05:05:19 +0000 Subject: [PATCH] select first argument should be 0 when we use it for sleeping. svn path=/trunk/timing/; revision=2191 --- timing/timing.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/timing/timing.c b/timing/timing.c index 7d1e2dc..9ac5d7b 100644 --- a/timing/timing.c +++ b/timing/timing.c @@ -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); }