[ 
https://issues.apache.org/jira/browse/MESOS-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14034601#comment-14034601
 ] 

Jie Yu commented on MESOS-1487:
-------------------------------

https://reviews.apache.org/r/22702/

> Improve Subprocess to support non-pipe mode
> -------------------------------------------
>
>                 Key: MESOS-1487
>                 URL: https://issues.apache.org/jira/browse/MESOS-1487
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Jie Yu
>            Assignee: Jie Yu
>
> Currently, we always create a pipe when using subprocess. This is not desired 
> in some cases. In some situation, we may just want the subprocess to inherit 
> the file handles from the parent (or redirect to a file).
> We can mimic the Python subprocess interface to support those modes. The user 
> can specify: PIPE, a existing file descriptor, or None for 
> stdin/stdout/stderr.
> Try<Subprocess> subprocess(
>     const std::string& command,
>     const Option<int>& stdin = Subprocess::PIPE,
>     const Option<int>& stdout = Subprocess::PIPE,
>     const Option<int>& stderr = Subprocess::PIPE,
>     const Option<std::map<std::string, std::string> >& environment = None(),
>     const Option<lambda::function<int()> >& setup = None());



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to