PrevUpHomeNext

Struct child

boost::process::child

Synopsis

// In header: <boost/process/child.hpp>


struct child {
  // construct/copy/destruct
  explicit child(const PROCESS_INFORMATION &);
  explicit child(pid_t);

  // public member functions
  HANDLE process_handle() const;

  // public data members
  PROCESS_INFORMATION proc_info;
  pid_t pid;
};

Description

Represents a child process.

On Windows child is movable but non-copyable. The destructor automatically closes handles to the child process.

child public construct/copy/destruct

  1. explicit child(const PROCESS_INFORMATION & pi);

    Constructor.

    Windows only.

  2. explicit child(pid_t p);

    Constructor.

    POSIX only.

child public member functions

  1. HANDLE process_handle() const;

    Returns the process handle.

    Windows only.

child public public data members

  1. PROCESS_INFORMATION proc_info;

    Process information.

    Windows only.

  2. pid_t pid;

    Process identifier.

    POSIX only.


PrevUpHomeNext