mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
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:
parent
8895fe0fab
commit
26f0ddd0cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user