diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-04 13:38:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-04 13:38:27 +0200 |
commit | f3f46a1656207a1c681e7c53cc3bd2c9a28fa887 (patch) | |
tree | e3f35ce96d8af5c7d0ec500abe502c3b681092e6 /butl/process.ixx | |
parent | decd319bc1bc7d427f92feba29d408eb2edb973d (diff) |
Allow calling process::wait() multiple types, make process move-only
Diffstat (limited to 'butl/process.ixx')
-rw-r--r-- | butl/process.ixx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/butl/process.ixx b/butl/process.ixx index 0506793..a0948e1 100644 --- a/butl/process.ixx +++ b/butl/process.ixx @@ -11,4 +11,15 @@ namespace butl inline process:: process (char const* args[], process& in, int out, int err) : process (nullptr, args, in, out, err) {} + + inline process:: + process (process&& p) + : id (p.id), + status (p.status), + out_fd (p.out_fd), + in_ofd (p.in_ofd), + in_efd (p.in_efd) + { + p.id = 0; + } } |