diff options
Diffstat (limited to 'examples/testd.c')
-rw-r--r-- | examples/testd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/testd.c b/examples/testd.c index ec5f690..cf93870 100644 --- a/examples/testd.c +++ b/examples/testd.c @@ -26,6 +26,7 @@ #include <dsignal.h> #include <dlog.h> #include <dpid.h> +#include <dexec.h> int main(int argc, char *argv[]) { pid_t pid; @@ -147,6 +148,7 @@ int main(int argc, char *argv[]) { case SIGHUP: daemon_log(LOG_INFO, "Got a HUP"); + daemon_exec("/", NULL, "/bin/ls", "ls", (char*) NULL); break; } |