diff --git a/kernel/src/thread/Thread.cpp b/kernel/src/thread/Thread.cpp index a46aec22..8c7d1eb4 100644 --- a/kernel/src/thread/Thread.cpp +++ b/kernel/src/thread/Thread.cpp @@ -71,6 +71,7 @@ Result> Thread::resolve_atfile(int dirfd, const String& pa [[noreturn]] void Thread::exit_and_signal_parent(u8 _status) { + if (this->id == 1) fail("the init process exited"); if (is_kernel) state = ThreadState::Dying; else {