From 6cd172c32ebe79692e19433f49716e58c57c8677 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 27 Apr 2016 18:47:01 +0200 Subject: Rework process internals, add current_id() --- butl/process.ixx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'butl/process.ixx') diff --git a/butl/process.ixx b/butl/process.ixx index e840372..3b7ed7d 100644 --- a/butl/process.ixx +++ b/butl/process.ixx @@ -6,7 +6,7 @@ namespace butl { inline process:: process () - : id (0), + : handle (0), status (0), // This is a bit of an assumption. out_fd (-1), in_ofd (-1), @@ -24,13 +24,13 @@ namespace butl inline process:: process (process&& p) - : id (p.id), + : handle (p.handle), status (p.status), out_fd (p.out_fd), in_ofd (p.in_ofd), in_efd (p.in_efd) { - p.id = 0; + p.handle = 0; } inline process& process:: @@ -38,16 +38,16 @@ namespace butl { if (this != &p) { - if (id != 0) + if (handle != 0) wait (); - id = p.id; + handle = p.handle; status = p.status; out_fd = p.out_fd; in_ofd = p.in_ofd; in_efd = p.in_efd; - p.id = 0; + p.handle = 0; } return *this; -- cgit v1.1