#include <execbox.h>
Collaboration diagram for Exec_process:
Public Types | |
typedef void(*) | Reader_fun (char *data, int datalen, int exit_code, gpointer user_data) |
Public Member Functions | |
Exec_process () | |
~Exec_process () | |
void | kill_child () |
void | read_from_child (int id) |
bool | exec (const char *file, char *argv[], Reader_fun rfun, void *udata) |
bool | check_child (int &exit_code) |
Private Attributes | |
int | child_stdin |
int | child_stdout |
int | child_stderr |
int | child_pid |
gint | stdout_tag |
gint | stderr_tag |
Reader_fun | reader |
void * | reader_data |
Definition at line 43 of file execbox.h.
typedef void(*) Exec_process::Reader_fun(char *data, int datalen, int exit_code, gpointer user_data) |
Exec_process::Exec_process | ( | ) |
Definition at line 50 of file execbox.cc.
Exec_process::~Exec_process | ( | ) |
Definition at line 62 of file execbox.cc.
void Exec_process::kill_child | ( | ) |
Definition at line 73 of file execbox.cc.
void Exec_process::read_from_child | ( | int | id | ) |
Definition at line 107 of file execbox.cc.
References len, and Obj_flags::read.
Referenced by Read_from_child().
bool Exec_process::exec | ( | const char * | file, | |
char * | argv[], | |||
Reader_fun | rfun, | |||
void * | udata | |||
) |
Definition at line 161 of file execbox.cc.
References Close_pipe(), Close_pipes(), and Read_from_child().
Here is the call graph for this function:
bool Exec_process::check_child | ( | int & | exit_code | ) |
Definition at line 226 of file execbox.cc.
int Exec_process::child_stdin [private] |
int Exec_process::child_stdout [private] |
int Exec_process::child_stderr [private] |
int Exec_process::child_pid [private] |
gint Exec_process::stdout_tag [private] |
gint Exec_process::stderr_tag [private] |
Reader_fun Exec_process::reader [private] |
void* Exec_process::reader_data [private] |