forked from OSchip/llvm-project
[Support] Increase timeout for the LockFileManager back to 5 mins.
Waiting for just 1 min may not be enough for some contexts. llvm-svn: 231309
This commit is contained in:
parent
f6557f98a2
commit
dc8f979b41
|
@ -186,8 +186,9 @@ LockFileManager::WaitForUnlockResult LockFileManager::waitForUnlock() {
|
||||||
Interval.tv_sec = 0;
|
Interval.tv_sec = 0;
|
||||||
Interval.tv_nsec = 1000000;
|
Interval.tv_nsec = 1000000;
|
||||||
#endif
|
#endif
|
||||||
// Don't wait more than one minute for the file to appear.
|
// Don't wait more than five minutes per iteration. Total timeout for the file
|
||||||
const unsigned MaxSeconds = 60;
|
// to appear is ~8.5 mins.
|
||||||
|
const unsigned MaxSeconds = 5*60;
|
||||||
do {
|
do {
|
||||||
// Sleep for the designated interval, to allow the owning process time to
|
// Sleep for the designated interval, to allow the owning process time to
|
||||||
// finish up and remove the lock file.
|
// finish up and remove the lock file.
|
||||||
|
|
Loading…
Reference in New Issue