diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-25 10:24:53 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-10-25 17:30:37 +0300 |
commit | b7f32cea30174e391027fecc9d431ca16b2f87c2 (patch) | |
tree | e9fe8c29bf361fa96b9a79243bffde0d1405b6e8 /libbutl/process-run.txx | |
parent | 397d710073eae9ad282bc0df9482a41d621acde5 (diff) |
All passing to process ownership to one end of pipe
Diffstat (limited to 'libbutl/process-run.txx')
-rw-r--r-- | libbutl/process-run.txx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libbutl/process-run.txx b/libbutl/process-run.txx index 8e6ca57..67426f0 100644 --- a/libbutl/process-run.txx +++ b/libbutl/process-run.txx @@ -87,21 +87,21 @@ namespace butl // valid file descriptor. // inline process::pipe - process_stdin (const process::pipe& v) + process_stdin (process::pipe v) { assert (v.in >= 0); return v; } inline process::pipe - process_stdout (const process::pipe& v) + process_stdout (process::pipe v) { assert (v.out >= 0); return v; } inline process::pipe - process_stderr (const process::pipe& v) + process_stderr (process::pipe v) { assert (v.out >= 0); return v; @@ -170,7 +170,9 @@ namespace butl return process_start (env.cwd, *env.path, cmd.data (), env.vars, - in_i, out_i, err_i); + std::move (in_i), + std::move (out_i), + std::move (err_i)); } template <typename C, |