summaryrefslogtreecommitdiff
path: root/src/user/app/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/init/init.c')
-rw-r--r--src/user/app/init/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/app/init/init.c b/src/user/app/init/init.c
index 24a0056..b97b483 100644
--- a/src/user/app/init/init.c
+++ b/src/user/app/init/init.c
@@ -18,10 +18,10 @@ void redirect(const char *exe, const char *out, const char *in) {
die("couldn't open %s\n", out);
if (!freopen(in, "r", stdin))
die(" couldn't open %s\n", in);
- termcook();
for (;;) {
if (!fork()) {
+ termcook();
execv(exe, NULL);
fprintf(stderr, "init: couldn't start %s\n", exe);
_syscall_sleep(5000);