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

subprocess clone argument should return a Try<pid_t>

    XMLWordPrintableJSON

Details

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

    Description

      In libprocess, the subprocess API accepts a clone argument. This is supposed to return a pid_t and set errno on error. However. Mesos sometimes passes ns::clone as the clone argument, and this API does not set errno which results in subprocess propagating a misleading error message up the stack.

      Since it is not at all obvious how to map all the ns::clone error conditions to an expressive errno, we should just change the clone argument to return a Try<pid_t>.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: