aboutsummaryrefslogtreecommitdiff
path: root/src/Program.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-21 03:49:17 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-21 03:49:17 +0200
commit40e0f8f5d8c3e480f01a2d71b6a493247adcb77f (patch)
treeccc3c0a7c82be8f5dbe86dfc712cce3da7e2ad59 /src/Program.c
parent5c72463c029804c85479d2c4426397d932c88ee1 (diff)
Initial matrix support
Diffstat (limited to 'src/Program.c')
-rw-r--r--src/Program.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Program.c b/src/Program.c
index bb476c4..c6bff50 100644
--- a/src/Program.c
+++ b/src/Program.c
@@ -44,7 +44,7 @@ int exec_program(const char **args, ProgramOutputCallback output_callback, void
close(fd[READ_END]);
close(fd[WRITE_END]);
- execvp(args[0], args);
+ execvp(args[0], (char* const*)args);
perror("execvp");
_exit(127);
} else { /* parent */
@@ -161,7 +161,7 @@ int exec_program_async(const char **args, pid_t *result_process_id) {
if(getppid() != parent_pid)
_exit(127);
- execvp(args[0], args);
+ execvp(args[0], (char* const*)args);
perror("execvp");
_exit(127);
} else {
@@ -171,7 +171,7 @@ int exec_program_async(const char **args, pid_t *result_process_id) {
// Daemonize child to make the parent the init process which will reap the zombie child
pid_t second_child = fork();
if(second_child == 0) { // child
- execvp(args[0], args);
+ execvp(args[0], (char* const*)args);
perror("execvp");
_exit(127);
} else if(second_child != -1) {