aboutsummaryrefslogtreecommitdiff
path: root/butl/process.ixx
blob: a0948e16255b9aeca8b5453e59c8956d2a71b982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// file      : butl/process.ixx -*- C++ -*-
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

namespace butl
{
  inline process::
  process (char const* args[], int in, int out, int err)
      : process (nullptr, args, in, out, err) {}

  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;
  }
}