From: Matthias Kruk Date: Fri, 27 Mar 2020 03:04:34 +0000 (+0900) Subject: kernel/core: Make init process wait() indefinitely, for now X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=df8c906859d4e9a2a633422df98e821478e3d7af;p=corax kernel/core: Make init process wait() indefinitely, for now --- diff --git a/kernel/core/main.c b/kernel/core/main.c index 592b645..65f5177 100644 --- a/kernel/core/main.c +++ b/kernel/core/main.c @@ -109,7 +109,7 @@ static void _init(void) int err; /* - * instead of something like /sbin/init, this process will behave more like the process daemon + * Instead of something like /sbin/init, this process will behave more like the process daemon * found in the MINIX3 operating system. It will spawn the daemons necessary for basic system * operation, and restart them in case they should die. */ @@ -139,7 +139,9 @@ static void _init(void) /* FIXME: Handle error */ } - wait(NULL); + while(1) { + wait(NULL); + } return; } @@ -150,7 +152,7 @@ int corax(void *mb_info, u32_t magic) int err; dbg_printf("Corax 0.1 - As the Crow flies\n"); - dbg_printf("(C) 2019 Matthias Kruk \n"); + dbg_printf("(C) 2020 Matthias Kruk \n"); dbg_printf("Compiled on %s at %s\n", __DATE__, __TIME__); /*