OSDN Git Service

Add a file open flag that disables O_CLOEXEC.
authorZachary Turner <zturner@google.com>
Fri, 8 Jun 2018 15:15:56 +0000 (15:15 +0000)
committerZachary Turner <zturner@google.com>
Fri, 8 Jun 2018 15:15:56 +0000 (15:15 +0000)
commitbc083d568e6a336efc31c88b8cdddf3a4ebc1ce7
tree629ab67296f61e6151e9d6673102998e7bb15d85
parent9d5c29c225936c425fffcd0a5c848e3f9ba8a009
Add a file open flag that disables O_CLOEXEC.

O_CLOEXEC is the right default, but occasionally you don't
want this.  This is especially true for tools like debuggers
where you might need to spawn the child process with specific
files already open, but it's occasionally useful in other
scenarios as well, like when you want to do some IPC between
parent and child.

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