summaryrefslogtreecommitdiff
path: root/src/user/app/init
diff options
context:
space:
mode:
authordzwdz2022-12-27 22:42:06 +0100
committerdzwdz2022-12-27 22:42:06 +0100
commit8ac68ecab5734d5c5f3638397e5a9e6084fe7737 (patch)
tree209fcf07d7d4c5f3555a3f78800ba86bd91482c7 /src/user/app/init
parent35a82cb0dae43eb538de7afa1da77c4e249ba4e4 (diff)
sh: minor usability / aesthetic improvements
Diffstat (limited to 'src/user/app/init')
-rw-r--r--src/user/app/init/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/user/app/init/init.c b/src/user/app/init/init.c
index 10511b8..96b2eb7 100644
--- a/src/user/app/init/init.c
+++ b/src/user/app/init/init.c
@@ -21,8 +21,9 @@ void redirect(const char *exe, const char *out, const char *in) {
for (;;) {
if (!fork()) {
+ const char *argv[] = {exe, NULL};
termcook();
- execv(exe, NULL);
+ execv(exe, (void*)argv);
fprintf(stderr, "init: couldn't start %s\n", exe);
_syscall_sleep(5000);
exit(1);