fiss

Friedel's Initialization and Service Supervision
Log | Files | Refs | LICENSE

commit 425a114113c53bf0def6a0994f9673e3cb86b0cd
parent 9df0742c76fd541dc8a4b145a6c98b640b8d906b
Author: Friedel Schon <[email protected]>
Date:   Tue, 25 Apr 2023 12:42:35 +0200

using the right execv

Diffstat:
Msrc/restart.c | 2+-
Msrc/stage.c | 4++--
Msrc/stop.c | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/restart.c b/src/restart.c @@ -21,7 +21,7 @@ static void do_finish(service_t* s) { dup2(null_fd, STDOUT_FILENO); dup2(null_fd, STDERR_FILENO); - execlp(path_buffer, path_buffer, NULL); + execl(path_buffer, path_buffer, NULL); print_error("cannot execute finish process"); _exit(1); } diff --git a/src/stage.c b/src/stage.c @@ -52,7 +52,7 @@ void handle_stage1() { sigaction(SIGCONT, &sigact, NULL); printf("enter stage1\n"); - execlp(SV_START_EXEC, SV_START_EXEC, NULL); + execl(SV_START_EXEC, SV_START_EXEC, NULL); print_error("unable to exec stage1"); _exit(1); } @@ -143,7 +143,7 @@ void handle_stage3() { sigaction(SIGCONT, &sigact, NULL); printf("enter stage3\n"); - execlp(SV_STOP_EXEC, SV_STOP_EXEC, NULL); + execl(SV_STOP_EXEC, SV_STOP_EXEC, NULL); print_error("unable to exec stage3"); _exit(1); } diff --git a/src/stop.c b/src/stop.c @@ -33,7 +33,7 @@ void service_stop(service_t* s, bool* changed) { dup2(null_fd, STDOUT_FILENO); dup2(null_fd, STDERR_FILENO); - execlp(path_buffer, path_buffer, NULL); + execl(path_buffer, path_buffer, NULL); print_error("cannot execute stop process"); _exit(1); }