aboutsummaryrefslogtreecommitdiff
path: root/butl/process.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-03 00:44:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-11-03 13:47:43 +0300
commit7ce74ce206065c3af0035583330b3c773086f21c (patch)
treefc0fb1d9bd0037299f12a27f1f38ac5056634568 /butl/process.ixx
parentcc8a2a1517cc3c55bdeb066a038868fb8c7f04d6 (diff)
Invent auto_fd, make use of it in fdstreams and process
Diffstat (limited to 'butl/process.ixx')
-rw-r--r--butl/process.ixx12
1 files changed, 6 insertions, 6 deletions
diff --git a/butl/process.ixx b/butl/process.ixx
index 6d4dd2f..1bc259c 100644
--- a/butl/process.ixx
+++ b/butl/process.ixx
@@ -139,9 +139,9 @@ namespace butl
process (process&& p)
: handle (p.handle),
status (p.status),
- out_fd (p.out_fd),
- in_ofd (p.in_ofd),
- in_efd (p.in_efd)
+ out_fd (std::move (p.out_fd)),
+ in_ofd (std::move (p.in_ofd)),
+ in_efd (std::move (p.in_efd))
{
p.handle = 0;
}
@@ -156,9 +156,9 @@ namespace butl
handle = p.handle;
status = std::move (p.status);
- out_fd = p.out_fd;
- in_ofd = p.in_ofd;
- in_efd = p.in_efd;
+ out_fd = std::move (p.out_fd);
+ in_ofd = std::move (p.in_ofd);
+ in_efd = std::move (p.in_efd);
p.handle = 0;
}