diff options
| -rw-r--r-- | taro/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/taro/daemon.c b/taro/daemon.c index d632e3d..984f339 100644 --- a/taro/daemon.c +++ b/taro/daemon.c @@ -105,7 +105,7 @@ static pid_t exec_or_exit(char *args[]) al_log_error("tarod", "fatal: failed to fork process, exiting..."); exit(EXIT_FAILURE); } else if (pid == 0) { - if (execv(args[0], args) == -1) { + if (execvp(args[0], args) == -1) { al_log_error("tarod", "fatal: failed to run '%s', exiting...", args[0]); // This should return the pid of init if the parent process has already exited. pid_t ppid = getppid(); |