James Peach created MESOS-9804:
----------------------------------
Summary: Subprocess should close inherited file descriptors earlier
Key: MESOS-9804
URL: https://issues.apache.org/jira/browse/MESOS-9804
Project: Mesos
Issue Type: Improvement
Components: libprocess
Reporter: James Peach
The libprocess {{subprocess}} API doesn't close the file descriptors that are
inherited across fork until after applying the child hooks. This means that the
inherited descriptors can remain open for much longer than you expect, since
parent and child hooks both need to be scheduled and run.
We should move the file descriptor closing as early as possible in the child.
We might also consider having the child write a byte back to the parent so that
we have a guaranteed synchronization point.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)