|
Public Types |
typedef std::map< std::string,
std::string > | Environment |
| enum | Stderr_Disposition { Normal_Stderr,
Discard_Stderr,
Stderr_To_Stdout,
Stderr_To_FileDesc
} |
Public Member Functions |
| | ExternalProgram (std::string commandline, Stderr_Disposition stderr_disp=Normal_Stderr, bool use_pty=false, int stderr_fd=-1, bool default_locale=false, const Pathname &root="") |
| | ExternalProgram (const char *const *argv, Stderr_Disposition stderr_disp=Normal_Stderr, bool use_pty=false, int stderr_fd=-1, bool default_locale=false, const Pathname &root="") |
| | ExternalProgram (const char *const *argv, const Environment &environment, Stderr_Disposition stderr_disp=Normal_Stderr, bool use_pty=false, int stderr_fd=-1, bool default_locale=false, const Pathname &root="") |
| | ExternalProgram (const char *binpath, const char *const *argv_1, bool use_pty=false) |
| | ExternalProgram (const char *binpath, const char *const *argv_1, const Environment &environment, bool use_pty=false) |
| | ~ExternalProgram () |
| int | close () |
| bool | kill () |
| bool | running () |
| pid_t | getpid () |
Static Public Member Functions |
| static void | renumber_fd (int origfd, int newfd) |
Protected Member Functions |
| int | checkStatus (int) |
Private Member Functions |
| void | start_program (const char *const *argv, const Environment &environment, Stderr_Disposition stderr_disp=Normal_Stderr, int stderr_fd=-1, bool default_locale=false, const char *root=NULL) |
Private Attributes |
| bool | use_pty |
| pid_t | pid |
| int | _exitStatus |