aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-28 22:23:57 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-28 22:23:57 +0100
commitc1a2bb29b9110be99c3fe60848dd64291cd14f06 (patch)
tree76c44f72e2cf8bae05ebb6b594039ef16b236705
parentdee9615b1fb963d321662e5227c6866a13290a50 (diff)
Call execvp() directly in __rebuild()
-rw-r--r--cbs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cbs.h b/cbs.h
index 1fadd5d..f6a7b00 100644
--- a/cbs.h
+++ b/cbs.h
@@ -450,7 +450,8 @@ __rebuild(char *src)
cmdclr(&cmd);
cmdaddv(&cmd, __cbs_argv, __cbs_argc);
cmdput(cmd);
- exit(cmdexec(cmd));
+ execvp(*cmd.argv, cmd.argv);
+ die("execvp: %s", *cmd.argv);
}
int