summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-05-21 02:25:37 -0700
committerAndreas Kling <kling@serenityos.org>2021-05-21 12:36:20 +0200
commit124a523199399baca00e307bcb98e1aeec24edef (patch)
treeb3b3f0fbeb412d6d50d0691853324cd1cf32109c /Kernel
parentd60ebbbba6429bf7f3ce58783acd8232d487d4b9 (diff)
downloadserenity-124a523199399baca00e307bcb98e1aeec24edef.zip
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.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/ProcessGroup.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/ProcessGroup.cpp b/Kernel/ProcessGroup.cpp
index 3a10fac756..23c429815b 100644
--- a/Kernel/ProcessGroup.cpp
+++ b/Kernel/ProcessGroup.cpp
@@ -14,9 +14,7 @@ InlineLinkedList<ProcessGroup>* 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> ProcessGroup::create(ProcessGroupID pgid)