You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Alexander Rukletsov (JIRA)" <ji...@apache.org> on 2017/03/14 13:23:41 UTC

[jira] [Created] (MESOS-7242) Subprocess::status() return value is platform dependent.

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)