diff options
Diffstat (limited to 'userland/minibox/utilities/init.c')
-rw-r--r-- | userland/minibox/utilities/init.c | 9 |
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; } |