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

`Subprocess::FD` can leak file descriptors into child processes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • libprocess
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: