[ 
https://issues.apache.org/jira/browse/MESOS-8643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Akash Gupta reassigned MESOS-8643:
----------------------------------

    Assignee: Akash Gupta

> `os::system` and `os::spawn` returns -1 on valid windows commands
> -----------------------------------------------------------------
>
>                 Key: MESOS-8643
>                 URL: https://issues.apache.org/jira/browse/MESOS-8643
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Akash Gupta
>            Assignee: Akash Gupta
>            Priority: Major
>
> `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
(v7.6.3#76005)

Reply via email to