mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
Kernel: Fix bogus check in Thread::WaitBlockCondition::finalize()
I botched this in 859e5741ff, the check
was supposed to be with Process::is_kernel_process().
This fixes an issue with zombie processes hanging around forever.
Thanks tomuta for spotting it! :^)
This commit is contained in:
@@ -581,7 +581,7 @@ void Thread::WaitBlockCondition::finalize()
|
||||
m_processes.clear();
|
||||
|
||||
// NOTE: Kernel processes don't have a leaked ref on them.
|
||||
if (!is_kernel_mode()) {
|
||||
if (!m_process.is_kernel_process()) {
|
||||
// No more waiters, drop the last reference immediately. This may
|
||||
// cause us to be destructed ourselves!
|
||||
VERIFY(m_process.ref_count() > 0);
|
||||
|
||||
Reference in New Issue
Block a user