Go to the source code of this file.
Defines | |
#define | DAEMON_EXEC_AVAILABLE 1 |
If this variable is defined to 1 iff daemon_pid_file_kill_wait() is supported. | |
Functions | |
int | daemon_exec (const char *dir, int *ret, const char *prog,...) |
Run the specified executable with the specified arguments in the specified directory and return the return value of the program in the specified pointer. |
Definition in file dexec.h.
#define DAEMON_EXEC_AVAILABLE 1 |
If this variable is defined to 1 iff daemon_pid_file_kill_wait() is supported.
int daemon_exec | ( | const char * | dir, | |
int * | ret, | |||
const char * | prog, | |||
... | ||||
) |
Run the specified executable with the specified arguments in the specified directory and return the return value of the program in the specified pointer.
The calling process is blocked until the child finishes and all child output (either STDOUT or STDIN) has been written to syslog.
dir | Working directory for the process. | |
ret | A pointer to an integer to write the return value of the program to. | |
prog | The path to the executable | |
... | The arguments to be passed to the program, followed by a (char *) NULL |