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

Subprocess::status() return value is platform dependent.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.2, 1.1.0, 1.2.0
    • None
    • None
    • None

    Description

      On Posix, the exit status is propagated from an underlying call to waitpid and can be used with macros defined in "wait.h", i.e., WIFEXITED(status).

      On Windows, the exit status contains the exit code from an underlying call to GetExitCodeProcess().

      We should ensure the code working with status is portable by for example:

      • making WIFEXITED family macros no-op on Windows or
      • converting status to a tuple <termination status, exit code>.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexr Alex R
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: