#include "../include/pam_netns.h"
Functions | |
int | pexec (const char *cmdpath, char *const argv[], int background, const char *input, char *output, size_t noutput) |
Execute a file in a new process. | |
Variables | |
options_t | pam_netns_options |
Needed to execute a process in a new environemt.
int pexec | ( | const char * | cmdpath, | |
char *const | argv[], | |||
int | background, | |||
const char * | input, | |||
char * | output, | |||
size_t | noutput | |||
) |
Execute a file in a new process.
This function executes a file in a new process (created with fork).
cmdpath | Path to file which should be executed. | |
argv | The argument vector | |
background | If this flag is setted to one, the process will be forked to background | |
input | Input String (needed for IPC from parent to child) | |
output | Output String (needed for IPC to get output from child) | |
noutput | Size of output string |