mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +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:
parent
4812b95795
commit
3108aa0a6b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue