James Peach created MESOS-9175: ---------------------------------- Summary: `Subprocess::FD` can leak file descriptors into child processes Key: MESOS-9175 URL: https://issues.apache.org/jira/browse/MESOS-9175 Project: Mesos Issue Type: Bug Components: libprocess Reporter: James Peach
When you use the {{subprocess}} API, you can use {{Subprocess::FD()}} to define how the standard IO streams are attached to the child process. The default type argument is {{IO::DUPLICATED}}. In that case, the descriptors are duplicated with {{dup(2)}} in the parent process. The new file descriptors will have their close-on-exec flag cleared and could then be inherited to undefined child processes. -- This message was sent by Atlassian JIRA (v7.6.3#76005)