Reapply "Use gethostuuid() on Mac to identify hosts for LockFileManager"
authorBen Langmuir <blangmuir@apple.com>
Mon, 29 Jun 2015 22:16:39 +0000 (22:16 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 29 Jun 2015 22:16:39 +0000 (22:16 +0000)
commitfce3cfb78491f6e96821164238aa5834313e175f
tree01e3385363c25435fa9d8e867ae20d4027e8c950
parenta6367d913614539a81f2c1cb0f327044810d9956
Reapply "Use gethostuuid() on Mac to identify hosts for LockFileManager"

Reapplies r241005 after fixing the build on non-Mac platforms. Original
commit message below.

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@241012 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/LockFileManager.cpp