Function procm_fork_exec
Defined in File procm.h
Function Documentation
-
pid_t procm_fork_exec(char **const cmd, const char *new_wd, bool_t stdout_sup, int *pipefd)
Wrapper for fork()/exec() functonality.
- Parameters:
cmd – The cmd to run exec() on
new_wd – The new working directory of the fork()ed process, or NULL if no change is desired.
stdout_sup – If true, then the stdout of the child process will be sent to /dev/null.
pipefd – If not NULL, the child will read data from the parent’s stdin.
- Returns:
The pid of the child in the parent, nothing in the child.