1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

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

svn path=/trunk/timing/; revision=2191
This commit is contained in:
Jack Moffitt 2001-10-20 05:05:19 +00:00
parent 5a4f55d74c
commit 64942a4113

View File

@ -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);
}