aboutsummaryrefslogtreecommitdiff
path: root/butl/process.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'butl/process.ixx')
-rw-r--r--butl/process.ixx11
1 files changed, 11 insertions, 0 deletions
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;
+ }
}