summaryrefslogtreecommitdiff
path: root/taro
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-10-19 12:55:02 -0400
committerAndrew Opalach <andrew@akon.city> 2024-10-19 12:55:02 -0400
commit15a90dd795c897150c694db0faa37062692a1739 (patch)
treece873da74892f3756c740a95120630f2a3d4fdd0 /taro
parent3a1513b9fd8c20765e51093ebd53901bf5076834 (diff)
downloadmauri-15a90dd795c897150c694db0faa37062692a1739.tar.gz
mauri-15a90dd795c897150c694db0faa37062692a1739.tar.bz2
mauri-15a90dd795c897150c694db0faa37062692a1739.zip
execv() -> execvp()
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'taro')
-rw-r--r--taro/daemon.c2
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();