Alexander Rukletsov created MESOS-7242:
------------------------------------------

             Summary: Subprocess::status() return value is platform dependent.
                 Key: MESOS-7242
                 URL: https://issues.apache.org/jira/browse/MESOS-7242
             Project: Mesos
          Issue Type: Improvement
    Affects Versions: 1.2.0, 1.1.0, 1.0.2
            Reporter: Alexander Rukletsov


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>}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to