Definition:
int ap_call_exec(request_rec *r, char *argv0, char **env, int shellcmd);
Usage example:
child_pid = ap_call_exec(r, pinfo, argv0, env, 0);
Calls exec() or the setuid wrapper, if setuid wrappers are enabled, to run argv0. env is a NULL-terminated array of strings to use as the program's environment, and shellcmd is a boolean indicating whether a shell should be spawned to run the command. If r->args is set and doesn't contain "=", it is passed to argv0 as command line arguments.
Never returns.
Previous: ap_bytes_in_pool
Next: ap_can_exec
Table of Contents
(Routines,
Structures,
Data Cells,
Constants)