From 19e9bde9e069f841387b8d7cbb4b9074d5f30c21 Mon Sep 17 00:00:00 2001
From: Liam <byteslice@airmail.cc>
Date: Wed, 25 Oct 2023 10:05:45 -0400
Subject: [PATCH] kernel: make sure new process is in list

---
 src/core/core.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/core/core.cpp b/src/core/core.cpp
index 934177b85..14d6c8c27 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -312,6 +312,7 @@ struct System::Impl {
         // Create the process.
         auto main_process = Kernel::KProcess::Create(system.Kernel());
         Kernel::KProcess::Register(system.Kernel(), main_process);
+        kernel.AppendNewProcess(main_process);
         kernel.MakeApplicationProcess(main_process);
         const auto [load_result, load_parameters] = app_loader->Load(*main_process, system);
         if (load_result != Loader::ResultStatus::Success) {