[
https://issues.apache.org/jira/browse/MESOS-8128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16217884#comment-16217884
]
James Peach commented on MESOS-8128:
------------------------------------
Maybe
{noformat}
// The pipe2() function appeared in FreeBSD 10.0.
#if __FreeBSD_version >= 1000000
... do pipe2 stuff ...
#endf
{noformat}
> Make os::pipe file descriptors O_CLOEXEC.
> -----------------------------------------
>
> Key: MESOS-8128
> URL: https://issues.apache.org/jira/browse/MESOS-8128
> Project: Mesos
> Issue Type: Bug
> Components: stout
> Reporter: James Peach
> Priority: Minor
>
> File descriptors from {{os::pipe}} will be inherited across exec. On Linux we
> can use [pipe2|http://man7.org/linux/man-pages/man2/pipe.2.html] to
> atomically make the pipe {{O_CLOEXEC}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)