aboutsummaryrefslogtreecommitdiff
path: root/butl/process.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-12-29 03:32:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-05 15:53:29 +0300
commitc61d6e14c08fec7658dbdc33c16b5feeece08fbf (patch)
treef090dbd27fadabebf0d685ad6bd3f9a899b18fa7 /butl/process.ixx
parent0e8c95a08f87922575c9f400399258dba54df1ca (diff)
Add process_exit
Diffstat (limited to 'butl/process.ixx')
-rw-r--r--butl/process.ixx8
1 files changed, 4 insertions, 4 deletions
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<status_type> s)
+ process (optional<process_exit> 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);