Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9804

Subprocess should close inherited file descriptors earlier.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libprocess
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jamespeach James Peach
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: