Use gethostuuid() on Mac to identify hosts for LockFileManager
authorBen Langmuir <blangmuir@apple.com>
Mon, 29 Jun 2015 21:47:44 +0000 (21:47 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 29 Jun 2015 21:47:44 +0000 (21:47 +0000)
commitd5c333b731307ad125da268b397906551b8bb562
treed77f356bad9b6e4578f6b6508adfc7a3374a7a5d
parent9cbdfb5c055847613288ceddf512d01b174cbf58
Use gethostuuid() on Mac to identify hosts for LockFileManager

The hostname can be very unstable when there are many machines on the
network competing for the same name. Using the hardware UUID makes it
less likely to have collisions or to consider files written by the
current host to be owned by a different one at a later time.

rdar://problem/21512307

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