Merge branch 'master' of github.com:Minep/lunaix-os
[lunaix-os.git] / lunaix-os / kernel / lxinit.c
index 57e2bda22421da102c8b063bca8adfd2f1fd58c4..2ac93422844506d72cb21557b75aa938ee1defec 100644 (file)
@@ -41,6 +41,7 @@ _lxinit_main()
         kprintf("I am child, I am about to terminated\n");
         _exit(1);
     }
+    wait(&status);
     pid_t child = wait(&status);
     kprintf("I am parent, my child (%d) terminated normally with code: %d.\n",
             child,