diff options
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/ProcessGroup.cpp | 4 |
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) |