diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2015-03-04 22:54:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2015-03-04 22:54:38 +0000 |
commit | dc8f979b412792a1da9842d6d003a1ec4fea86f0 (patch) | |
tree | b165cecc717e18f75cae4dcf2f2b0c201cbb897a /llvm/lib/Support/LockFileManager.cpp | |
parent | f6557f98a24041358781ba6bdaa2f7870700377e (diff) | |
download | bcm5719-llvm-dc8f979b412792a1da9842d6d003a1ec4fea86f0.tar.gz bcm5719-llvm-dc8f979b412792a1da9842d6d003a1ec4fea86f0.zip |
[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
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
-rw-r--r-- | llvm/lib/Support/LockFileManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/LockFileManager.cpp b/llvm/lib/Support/LockFileManager.cpp index ec3158c3bc1..2a0178bcc5b 100644 --- a/llvm/lib/Support/LockFileManager.cpp +++ b/llvm/lib/Support/LockFileManager.cpp @@ -186,8 +186,9 @@ LockFileManager::WaitForUnlockResult LockFileManager::waitForUnlock() { Interval.tv_sec = 0; Interval.tv_nsec = 1000000; #endif - // Don't wait more than one minute for the file to appear. - const unsigned MaxSeconds = 60; + // Don't wait more than five minutes per iteration. Total timeout for the file + // to appear is ~8.5 mins. + const unsigned MaxSeconds = 5*60; do { // Sleep for the designated interval, to allow the owning process time to // finish up and remove the lock file. |