[Lldb-commits] [PATCH] Extend PipePosix with child_processes_inherit support - to control whether pipe handles should be inherited by a child process.

Oleksiy Vyalov ovyalov at google.com
Thu Nov 20 15:56:51 PST 2014


Hi clayborg, emaste,

In order to control resource sharing between processes Pipe::Open() has given a new argument bool child_processes_inherit .
If child_processes_inherit is false take following approaches:
1. On Linux, FreeBSD 10 or higher - use pipe2 with O_CLOEXEC flag.
2. Otherwise - set FD_CLOEXEC flag on read and write pipe descriptors after successful pipe creation.

http://reviews.llvm.org/D6348

Files:
  include/lldb/Host/posix/PipePosix.h
  source/Host/posix/ConnectionFileDescriptorPosix.cpp
  source/Host/posix/PipePosix.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6348.16459.patch
Type: text/x-patch
Size: 2695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141120/95429cea/attachment.bin>


More information about the lldb-commits mailing list