#include <stdarg.h>
Go to the source code of this file.
Defines | |
#define | DAEMON_EXEC_AVAILABLE 1 |
This variable is defined to 1 iff daemon_exec() is supported. | |
#define | DAEMON_GCC_SENTINEL |
#define | DAEMON_EXECV_AVAILABLE 1 |
This variable is defined to 1 iff daemon_execv() is supported. | |
Functions | |
int | daemon_exec (const char *dir, int *ret, const char *prog,...) DAEMON_GCC_SENTINEL |
Run the specified executable with the specified arguments in the specified directory and return the return value of the program in the specified pointer. | |
int | daemon_execv (const char *dir, int *ret, const char *prog, va_list ap) |
The same as daemon_exec, but without variadic arguments. |
Definition in file dexec.h.
|
This variable is defined to 1 iff daemon_exec() is supported.
|
|
This variable is defined to 1 iff daemon_execv() is supported.
|
|
|
|
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. Running this function requires that daemon_signal() has been called with SIGCHLD as argument.
|
|
The same as daemon_exec, but without variadic arguments.
|