A pimple-pattern implementation class used by G::NewProcess.
More...
|
| NewProcessImp (const Path &exe, const StringArray &args, const Environment &env, Fd fd_stdin, Fd fd_stdout, Fd fd_stderr, const G::Path &cd, bool strict_path, Identity run_as_id, bool strict_id, int exec_error_exit, const std::string &exec_error_format, std::string(*exec_error_format_fn)(std::string, int)) |
|
int | id () const noexcept |
|
NewProcessWaitable & | waitable () noexcept |
|
int | run (const Path &, const StringArray &, const Environment &, bool strict_path) |
|
void | kill () noexcept |
|
std::string | execErrorFormat (const std::string &format, int errno_) |
|
| NewProcessImp (const NewProcessImp &)=delete |
|
| NewProcessImp (NewProcessImp &&)=delete |
|
void | operator= (const NewProcessImp &)=delete |
|
void | operator= (NewProcessImp &&)=delete |
|
A pimple-pattern implementation class used by G::NewProcess.
Definition at line 77 of file gnewprocess_unix.cpp.
◆ Fd
◆ NewProcessImp()
G::NewProcessImp::NewProcessImp |
( |
const Path & |
exe, |
|
|
const StringArray & |
args, |
|
|
const Environment & |
env, |
|
|
Fd |
fd_stdin, |
|
|
Fd |
fd_stdout, |
|
|
Fd |
fd_stderr, |
|
|
const G::Path & |
cd, |
|
|
bool |
strict_path, |
|
|
Identity |
run_as_id, |
|
|
bool |
strict_id, |
|
|
int |
exec_error_exit, |
|
|
const std::string & |
exec_error_format, |
|
|
std::string(*)(std::string, int) |
exec_error_format_fn |
|
) |
| |
◆ duplicate()
bool G::NewProcessImp::duplicate |
( |
Fd |
fd, |
|
|
int |
fd_std |
|
) |
| |
|
static |
◆ execErrorFormat()
std::string G::NewProcessImp::execErrorFormat |
( |
const std::string & |
format, |
|
|
int |
errno_ |
|
) |
| |
◆ fork()
std::pair< bool, pid_t > G::NewProcessImp::fork |
( |
| ) |
|
|
static |
◆ id()
int G::NewProcessImp::id |
( |
| ) |
const |
|
noexcept |
◆ kill()
void G::NewProcessImp::kill |
( |
| ) |
|
|
noexcept |
◆ printError()
void G::NewProcessImp::printError |
( |
int |
stdxxx, |
|
|
const std::string & |
s |
|
) |
| |
|
static |
◆ run()
◆ waitable()
The documentation for this class was generated from the following file: