]> git.corax.cc Git - corax/commitdiff
kernel/core: Make init process wait() indefinitely, for now
authorMatthias Kruk <m@m10k.eu>
Fri, 27 Mar 2020 03:04:34 +0000 (12:04 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 27 Mar 2020 03:06:40 +0000 (12:06 +0900)
kernel/core/main.c

index 592b64553fa7bdd54417f37dcd54a53584bd56db..65f5177b430de983676240a45079deefec1e78fa 100644 (file)
@@ -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 <matt@corax.cc>\n");
+    dbg_printf("(C) 2020 Matthias Kruk <matt@corax.cc>\n");
     dbg_printf("Compiled on %s at %s\n", __DATE__, __TIME__);
 
 /*