MySQL 8.4.2
Source Code Documentation
mysql_harness::SpawnedProcess Class Reference

an alive, spawned process More...

#include <process_launcher.h>

Inheritance diagram for mysql_harness::SpawnedProcess:
[legend]

Public Types

using handle_type = pid_t
 
using id_type = pid_t
 

Public Member Functions

 SpawnedProcess (std::string pexecutable_path, std::vector< std::string > pargs, std::vector< std::pair< std::string, std::string > > penv_vars, bool predirect_stderr=true)
 
 SpawnedProcess (const SpawnedProcess &)=default
 
virtual ~SpawnedProcess ()=default
 
std::string get_cmd_line () const
 
std::string executable () const
 

Protected Attributes

const std::string executable_path
 
const std::vector< std::string > args
 
const std::vector< std::pair< std::string, std::string > > env_vars
 
pid_t childpid
 
int fd_in [2]
 
int fd_out [2]
 
bool redirect_stderr
 

Detailed Description

an alive, spawned process

Member Typedef Documentation

◆ handle_type

◆ id_type

Constructor & Destructor Documentation

◆ SpawnedProcess() [1/2]

mysql_harness::SpawnedProcess::SpawnedProcess ( std::string  pexecutable_path,
std::vector< std::string >  pargs,
std::vector< std::pair< std::string, std::string > >  penv_vars,
bool  predirect_stderr = true 
)
inline

◆ SpawnedProcess() [2/2]

mysql_harness::SpawnedProcess::SpawnedProcess ( const SpawnedProcess )
default

◆ ~SpawnedProcess()

virtual mysql_harness::SpawnedProcess::~SpawnedProcess ( )
virtualdefault

Member Function Documentation

◆ executable()

std::string mysql_harness::SpawnedProcess::executable ( ) const
inline

◆ get_cmd_line()

std::string mysql_harness::SpawnedProcess::get_cmd_line ( ) const

Member Data Documentation

◆ args

const std::vector<std::string> mysql_harness::SpawnedProcess::args
protected

◆ childpid

pid_t mysql_harness::SpawnedProcess::childpid
protected

◆ env_vars

const std::vector<std::pair<std::string, std::string> > mysql_harness::SpawnedProcess::env_vars
protected

◆ executable_path

const std::string mysql_harness::SpawnedProcess::executable_path
protected

◆ fd_in

int mysql_harness::SpawnedProcess::fd_in[2]
protected

◆ fd_out

int mysql_harness::SpawnedProcess::fd_out[2]
protected

◆ redirect_stderr

bool mysql_harness::SpawnedProcess::redirect_stderr
protected

The documentation for this class was generated from the following files: