From f3f46a1656207a1c681e7c53cc3bd2c9a28fa887 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Sep 2015 13:38:27 +0200 Subject: Allow calling process::wait() multiple types, make process move-only --- butl/process.ixx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'butl/process.ixx') 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; + } } -- cgit v1.1