From c61d6e14c08fec7658dbdc33c16b5feeece08fbf Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 29 Dec 2016 03:32:05 +0300 Subject: Add process_exit --- butl/process.ixx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'butl/process.ixx') diff --git a/butl/process.ixx b/butl/process.ixx index 1bc259c..d360f7e 100644 --- a/butl/process.ixx +++ b/butl/process.ixx @@ -100,9 +100,9 @@ namespace butl } inline process:: - process (optional s) + process (optional e) : handle (0), - status (s), + exit (std::move (e)), out_fd (-1), in_ofd (-1), in_efd (-1) @@ -138,7 +138,7 @@ namespace butl inline process:: process (process&& p) : handle (p.handle), - status (p.status), + exit (std::move (p.exit)), out_fd (std::move (p.out_fd)), in_ofd (std::move (p.in_ofd)), in_efd (std::move (p.in_efd)) @@ -155,7 +155,7 @@ namespace butl wait (); handle = p.handle; - status = std::move (p.status); + exit = std::move (p.exit); out_fd = std::move (p.out_fd); in_ofd = std::move (p.in_ofd); in_efd = std::move (p.in_efd); -- cgit v1.1