From 8ac68ecab5734d5c5f3638397e5a9e6084fe7737 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 27 Dec 2022 22:42:06 +0100 Subject: sh: minor usability / aesthetic improvements --- src/user/app/init/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/user/app/init/init.c') 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); -- cgit v1.2.3