aboutsummaryrefslogtreecommitdiff
path: root/butl/process.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-27 18:47:01 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2016-04-29 10:25:37 +0300
commit6cd172c32ebe79692e19433f49716e58c57c8677 (patch)
tree579995efe00d14c3f26d6921bf1f55162b629330 /butl/process.ixx
parenta08803f6675a77971884604c0b79ce5f75ea93bb (diff)
Rework process internals, add current_id()
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 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;