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)
commitd2d52de229393d5333290748f7a85ed9e727ed38
treea189a9a60d22b341db8b3c1321321038d245168d
parent955c4ff9c3a5832ba9309b6945d053af18dc27a6
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.

llvm-svn: 228603
llvm/include/llvm/Support/LockFileManager.h
llvm/lib/Support/LockFileManager.cpp