<rdar://problem/13551789> Fix a race in the LockFileManager.
authorDouglas Gregor <dgregor@apple.com>
Fri, 5 Apr 2013 20:53:57 +0000 (20:53 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 5 Apr 2013 20:53:57 +0000 (20:53 +0000)
commite76fe51fe1bfe437aba5e619dae58706d35b3a58
tree521a2b6adeca0ad771868f459d7efcfae7850cca
parent0591f19c8b84311288ef19f76952c334b9730681
<rdar://problem/13551789> Fix a race in the LockFileManager.

It's possible for the lock file to disappear and the owning process to
return before we're able to see the generated file. Spin for a little
while to see if it shows up before failing.

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