From a128eb0961ccf820ff2142897795b48723d842bd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 21 Oct 2016 20:02:35 +0300 Subject: Make process status optional --- butl/process.ixx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'butl/process.ixx') diff --git a/butl/process.ixx b/butl/process.ixx index 83918bf..6d4dd2f 100644 --- a/butl/process.ixx +++ b/butl/process.ixx @@ -100,9 +100,9 @@ namespace butl } inline process:: - process () + process (optional s) : handle (0), - status (0), // This is a bit of an assumption. + status (s), out_fd (-1), in_ofd (-1), in_efd (-1) @@ -155,7 +155,7 @@ namespace butl wait (); handle = p.handle; - status = p.status; + status = std::move (p.status); out_fd = p.out_fd; in_ofd = p.in_ofd; in_efd = p.in_efd; -- cgit v1.1