Akash Gupta created MESOS-8643:

             Summary: `os::system` and `os::spawn` returns -1 on valid windows 
                 Key: MESOS-8643
                 URL: https://issues.apache.org/jira/browse/MESOS-8643
             Project: Mesos
          Issue Type: Bug
            Reporter: Akash Gupta

`os::system` and `os::spawn` return the process exit code or -1 on failure. 
However, on WIndows, -1 is a valid exit code (e.g. `os::system("exit -1")). 
It's impossible to distinguish a failure from a process returning -1, so those 
calls need to return something like a `Try<int>` or `Option<int>` to 
distinguish the error case.

This message was sent by Atlassian JIRA

Reply via email to