1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 21:47:43 +00:00

Revert "Kernel: Fix regression, removing a ProcessGroup that not in the list"

This reverts commit bbe315d8c0.

This is un-needed when reverting the parent commit.
This commit is contained in:
Brian Gianforcaro 2021-05-21 02:25:37 -07:00 committed by Andreas Kling
parent d60ebbbba6
commit 124a523199

View file

@ -14,9 +14,7 @@ InlineLinkedList<ProcessGroup>* g_process_groups;
ProcessGroup::~ProcessGroup() ProcessGroup::~ProcessGroup()
{ {
ScopedSpinLock lock(g_process_groups_lock); 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) RefPtr<ProcessGroup> ProcessGroup::create(ProcessGroupID pgid)