[VFS] Switch from close to SafelyCloseFileDescriptor
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 4 Mar 2016 05:26:14 +0000 (05:26 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 4 Mar 2016 05:26:14 +0000 (05:26 +0000)
commit6a6206d440152b534b3e08e87b0ab3168573c438
tree80059f6a6dfc4248b74b3bad549eb31f16fbc5c1
parent8757fc5594583b282f0514a5cf6919f6ceca4395
[VFS] Switch from close to SafelyCloseFileDescriptor

The SafelyCloseFileDescriptor machinery does the right thing in the face
of signals while close will do something platform specific which results
in the FD potentially getting leaked.

llvm-svn: 262687
clang/lib/Basic/VirtualFileSystem.cpp