diff options
author | dzwdz | 2022-12-27 22:42:06 +0100 |
---|---|---|
committer | dzwdz | 2022-12-27 22:42:06 +0100 |
commit | 8ac68ecab5734d5c5f3638397e5a9e6084fe7737 (patch) | |
tree | 209fcf07d7d4c5f3555a3f78800ba86bd91482c7 /src/user/app/init | |
parent | 35a82cb0dae43eb538de7afa1da77c4e249ba4e4 (diff) |
sh: minor usability / aesthetic improvements
Diffstat (limited to 'src/user/app/init')
-rw-r--r-- | src/user/app/init/init.c | 3 |
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); |