aboutsummaryrefslogtreecommitdiff
path: root/butl/process.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-10-21 20:02:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-10-24 11:27:19 +0300
commita128eb0961ccf820ff2142897795b48723d842bd (patch)
tree291351ef0ed9f428b3f5c8a1bf22483d3350bc15 /butl/process.ixx
parent070d99ca6d714e8789e67e2e797a1bf16ba35528 (diff)
Make process status optional
Diffstat (limited to 'butl/process.ixx')
-rw-r--r--butl/process.ixx6
1 files changed, 3 insertions, 3 deletions
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<status_type> 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;