volser: select() cannot be used to sleep on windows

On Windows must use Sleep() instead of select() with no
fd_set parameters.

Change-Id: I693718c74dd9be0b4eb58ec26afac0882845e71c
Reviewed-on: http://gerrit.openafs.org/3675
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
Tested-by: Rod Widdowson <rdw@steadingsoftware.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
This commit is contained in:
Jeffrey Altman 2011-01-16 16:42:15 -05:00 committed by Jeffrey Altman
parent 8895fe0fab
commit 26f0ddd0cd

View File

@ -150,7 +150,11 @@ BKGLoop(void *unused)
tv.tv_sec = GCWAKEUP;
tv.tv_usec = 0;
#ifdef AFS_PTHREAD_ENV
#ifdef AFS_NT40_ENV
Sleep(GCWAKEUP * 1000);
#else
select(0, 0, 0, 0, &tv);
#endif
#else
(void)IOMGR_Select(0, 0, 0, 0, &tv);
#endif