]> granicus.if.org Git - llvm/commit
raw_fd_ostream: Make file handles non-inheritable by default
authorPavel Labath <labath@google.com>
Wed, 18 Jan 2017 15:46:50 +0000 (15:46 +0000)
committerPavel Labath <labath@google.com>
Wed, 18 Jan 2017 15:46:50 +0000 (15:46 +0000)
commit7990fabccf7879d1947994667b5194b7d2c23862
treee70e2135b44a0d7766a965a11dc9f9bfc9935c00
parent73dc33b204e19dd5a60edc41dfd818e962f7500c
raw_fd_ostream: Make file handles non-inheritable by default

Summary:
This makes the file descriptors on unix platform non-inheritable (O_CLOEXEC).

There is no change in behavior on windows, as the handles were already
non-inheritable there.

Reviewers: rnk, rafael

Subscribers: llvm-commits, mgorny

Differential Revision: https://reviews.llvm.org/D28854

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292401 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/Path.inc