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

Subprocess should close inherited file descriptors earlier.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • libprocess
    • 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

            Unassigned Unassigned
            jamespeach James Peach
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: