Reduce the LockFileManager timeout, and provide unsafeRemoveLockFile
authorBen Langmuir <blangmuir@apple.com>
Mon, 9 Feb 2015 20:34:24 +0000 (20:34 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 9 Feb 2015 20:34:24 +0000 (20:34 +0000)
commitea280d963dfb7f554b2f299f408a1444bc74c023
treed03338f9a7332daf5eb3ff07496091eba8b0ba68
parent6194244842292bec850b48e6b667cce57bdde341
Reduce the LockFileManager timeout, and provide unsafeRemoveLockFile

5 minutes is an eternity, so try to strike a better balance between
waiting long enough for any reasonable module build and not so long that
users kill the process because they think it's hanging.

Also give the client a way to delete the lock file after a timeout.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228603 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/LockFileManager.h
lib/Support/LockFileManager.cpp