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)
commitc349cf393925d183ed7dd8e69fa3f51169caf024
tree2aac9c3817c014f37f3ee09fe1109a31441b5393
parent81dd16a1e0498933f8daa97a957987613eeef6a5
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

llvm-svn: 241005
llvm/lib/Support/LockFileManager.cpp