From 124a523199399baca00e307bcb98e1aeec24edef Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Fri, 21 May 2021 02:25:37 -0700 Subject: [PATCH] Revert "Kernel: Fix regression, removing a ProcessGroup that not in the list" This reverts commit bbe315d8c0e36368091806f7ba1860d848e9bca7. This is un-needed when reverting the parent commit. --- Kernel/ProcessGroup.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Kernel/ProcessGroup.cpp b/Kernel/ProcessGroup.cpp index 3a10fac756d..23c429815bd 100644 --- a/Kernel/ProcessGroup.cpp +++ b/Kernel/ProcessGroup.cpp @@ -14,9 +14,7 @@ InlineLinkedList* g_process_groups; ProcessGroup::~ProcessGroup() { ScopedSpinLock lock(g_process_groups_lock); - if (m_next || m_prev) { - g_process_groups->remove(this); - } + g_process_groups->remove(this); } RefPtr ProcessGroup::create(ProcessGroupID pgid)