summaryrefslogtreecommitdiff
path: root/userland/minibox/utilities/init.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-11-28 00:06:09 +0100
committerAnton Kling <anton@kling.gg>2024-11-28 00:12:17 +0100
commit54869df7835565d0983096f65326cdd2d5f4f3d8 (patch)
tree3124d37d170bb14bfcc315442e410c0b76a05cf1 /userland/minibox/utilities/init.c
parent5fdba54196c7171ddebb29aef597b965a1b1ead1 (diff)
changes
Diffstat (limited to 'userland/minibox/utilities/init.c')
-rw-r--r--userland/minibox/utilities/init.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/userland/minibox/utilities/init.c b/userland/minibox/utilities/init.c
index 07dfce7..ce65387 100644
--- a/userland/minibox/utilities/init.c
+++ b/userland/minibox/utilities/init.c
@@ -63,10 +63,13 @@ int init_main(void) {
printf("minibox init must be launched as pid1.\n");
return 1;
}
- if (fork())
- for (;;)
+ if (fork()) {
+ for (;;) {
wait(NULL);
+ msleep(10000);
+ }
+ }
char *a[] = {NULL};
- execv("/ws", a);
+ execv("/init.sh", a);
return 1;
}