Skip to content

Commit a568eff

Browse files
committed
Reapply "[LockFileManager] Reduce default timeout time"
This reverts commit 9957204, effectively reapplying 314651a unchanged, now that the Clang commits it depends on are back in. rdar://problem/30165583 rdar://problem/30171097
1 parent 2df18dd commit a568eff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Support/LockFileManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ LockFileManager::WaitForUnlockResult LockFileManager::waitForUnlock() {
290290
Interval.tv_sec = 0;
291291
Interval.tv_nsec = 1000000;
292292
#endif
293-
// Don't wait more than five minutes per iteration. Total timeout for the file
294-
// to appear is ~8.5 mins.
295-
const unsigned MaxSeconds = 5*60;
293+
// Don't wait more than 40s per iteration. Total timeout for the file
294+
// to appear is ~1.5 minutes.
295+
const unsigned MaxSeconds = 40;
296296
do {
297297
// Sleep for the designated interval, to allow the owning process time to
298298
// finish up and remove the lock file.

0 commit comments

Comments
 (0)