From 15a90dd795c897150c694db0faa37062692a1739 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 19 Oct 2024 12:55:02 -0400 Subject: execv() -> execvp() Signed-off-by: Andrew Opalach --- taro/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'taro') 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(); -- cgit v1.2.3-101-g0448