VLC 4.0.0-dev
|
Functions | |
int | vlc_spawn (pid_t *pid, const char *file, const int *fdv, const char *const *argv) |
Spawn a child process (by file name). | |
int | vlc_spawnp (pid_t *pid, const char *path, const int *fdv, const char *const *argv) |
Spawn a child process. | |
int | vlc_waitpid (pid_t pid) |
Waits for a child process. | |
int vlc_spawn | ( | pid_t * | pid, |
const char * | file, | ||
const int * | fdv, | ||
const char *const * | argv | ||
) |
Spawn a child process (by file name).
This function creates a child process. For all practical purposes, it is identical to vlc_spawnp(), with one exception: vlc_spawn() does not look for the executable file name in the OS-defined search path. Instead the file name must be absolute.
pid | storage space for the child process identifier [OUT] |
file | executable file path [IN] |
fdv | file descriptor array [IN] |
argv | NULL-terminated array of command line arguments [IN] |
int vlc_spawnp | ( | pid_t * | pid, |
const char * | path, | ||
const int * | fdv, | ||
const char *const * | argv | ||
) |
Spawn a child process.
This function creates a child process. The created process will run with the same environment and privileges as the calling process.
An array of file descriptors must be provided for the child process:
vlc_waitpid() must be called to collect outstanding system resources after the child process terminates.
pid | storage space for the child process identifier [OUT] |
path | executable path [IN] |
fdv | file descriptor array [IN] |
argv | NULL-terminated array of command line arguments [IN] |
Referenced by vlc_getProxyUrl().
int vlc_waitpid | ( | pid_t | pid | ) |
Waits for a child process.
This function waits until a child process created by vlc_spawn() or vlc_spawnp() has completed and releases any associated system resource.
pid | process identifier as returned by vlc_spawn() or vlc_spawnp() |
References vlc_assert_unreachable.
Referenced by vlc_getProxyUrl().