|
static int | amxp_subproc_child_status (amxp_subproc_t *subproc, int status) |
|
static void | amxp_subproc_close_fds (void) |
|
static void | amxp_subproc_exec_child (amxp_subproc_t *const subproc, char **argv) |
|
static void | amxp_subproc_sigchild (UNUSED const char *const sig_name, UNUSED const amxc_var_t *const data, UNUSED void *const priv) |
|
static int | amxp_recalculate_timeout (struct timespec *start, int timeout_msec) |
|
int | amxp_subproc_new (amxp_subproc_t **subproc) |
| Constructor function, creates a new child process data structure. More...
|
|
int | amxp_subproc_delete (amxp_subproc_t **subproc) |
| Destructor function, deletes a child process data structure. More...
|
|
int | amxp_subproc_open_fd (amxp_subproc_t *subproc, int requested) |
| Opens standard file descriptor to the child process. More...
|
|
int | amxp_subproc_vstart (amxp_subproc_t *const subproc, char **argv) |
| Start a child process. More...
|
|
int | amxp_subproc_start (amxp_subproc_t *const subproc, char *cmd,...) |
| Start a child process. More...
|
|
int | amxp_subproc_astart (amxp_subproc_t *const subproc, amxc_array_t *cmd) |
| Start a child process. More...
|
|
int | amxp_subproc_kill (const amxp_subproc_t *const subproc, const int sig) |
| Sends a Linux signal to the child process. More...
|
|
amxp_subproc_t * | amxp_subproc_find (const int pid) |
| Retrieve a amxp_subproc_t for a child process using it's process identifier. More...
|
|
pid_t | amxp_subproc_get_pid (const amxp_subproc_t *const subproc) |
| Get the PID of a child process. More...
|
|
amxp_signal_mngr_t * | amxp_subproc_get_sigmngr (const amxp_subproc_t *const subproc) |
| Get the Signal managers of the child process. More...
|
|
bool | amxp_subproc_is_running (const amxp_subproc_t *const subproc) |
| Checks if the child process is running. More...
|
|
int | amxp_subproc_wait (amxp_subproc_t *subproc, int timeout_msec) |
| Waits until the child process has stopped. More...
|
|
int | amxp_subproc_vstart_wait (amxp_subproc_t *subproc, int timeout_msec, char **cmd) |
| Starts a child process and waits until it exits. More...
|
|
int | amxp_subproc_start_wait (amxp_subproc_t *subproc, int timeout_msec, char *cmd,...) |
| Starts a child process and waits until it exits. More...
|
|
int | amxp_subproc_ifexited (amxp_subproc_t *subproc) |
| Checks if the child process terminated normally. More...
|
|
int | amxp_subproc_ifsignaled (amxp_subproc_t *subproc) |
| Checks if the child process was stopped because of an uncaught Linux signal. More...
|
|
int | amxp_subproc_get_exitstatus (amxp_subproc_t *subproc) |
| Gets the exit code of the child process. More...
|
|
int | amxp_subproc_get_termsig (amxp_subproc_t *subproc) |
| Gets the Linux signal id that caused the child process to stop. More...
|
|