diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2017-03-18 00:32:34 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2017-03-18 00:32:34 +0000 |
commit | 8fef5556bcd628e5579739844bdd46d70289b4ab (patch) | |
tree | 977f9a9ed70e87b306a31e0c393a0e150f8b1bd0 | |
parent | 5a0af1fcd16eb997c2405eda51b90497eaf32caa (diff) | |
download | bcm5719-llvm-8fef5556bcd628e5579739844bdd46d70289b4ab.tar.gz bcm5719-llvm-8fef5556bcd628e5579739844bdd46d70289b4ab.zip |
[LockFileManager] Reduce lock timeout
Go back to behavior pre-r231309 and reduce the timeout from 8 to ~1.5
min now that we have (a) PCMCache mechanism (r298165) and (b) timeout
that doesn't cause a failure, but actually build the module (r298175).
rdar://problem/30297862
llvm-svn: 298176
-rw-r--r-- | llvm/lib/Support/LockFileManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/LockFileManager.cpp b/llvm/lib/Support/LockFileManager.cpp index 444aaa37c8c..8be9879fbc2 100644 --- a/llvm/lib/Support/LockFileManager.cpp +++ b/llvm/lib/Support/LockFileManager.cpp @@ -304,9 +304,9 @@ LockFileManager::WaitForUnlockResult LockFileManager::waitForUnlock() { Interval.tv_sec = 0; Interval.tv_nsec = 1000000; #endif - // 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; + // Don't wait more than 40s per iteration. Total timeout for the file + // to appear is ~1.5 minutes. + const unsigned MaxSeconds = 40; do { // Sleep for the designated interval, to allow the owning process time to // finish up and remove the lock file. |