[llvm] r231309 - [Support] Increase timeout for the LockFileManager back to 5 mins.
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Mar 4 14:54:39 PST 2015
Author: akirtzidis
Date: Wed Mar 4 16:54:38 2015
New Revision: 231309
URL: http://llvm.org/viewvc/llvm-project?rev=231309&view=rev
Log:
[Support] Increase timeout for the LockFileManager back to 5 mins.
Waiting for just 1 min may not be enough for some contexts.
Modified:
llvm/trunk/lib/Support/LockFileManager.cpp
Modified: llvm/trunk/lib/Support/LockFileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/LockFileManager.cpp?rev=231309&r1=231308&r2=231309&view=diff
==============================================================================
--- llvm/trunk/lib/Support/LockFileManager.cpp (original)
+++ llvm/trunk/lib/Support/LockFileManager.cpp Wed Mar 4 16:54:38 2015
@@ -186,8 +186,9 @@ LockFileManager::WaitForUnlockResult Loc
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.
More information about the llvm-commits
mailing list