mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Kernel: Fix broken destruction order for Process/Thread.
This commit is contained in:
parent
b6cd66c3b5
commit
5713c3a0cb
Notes:
sideshowbarker
2024-07-19 14:57:34 +09:00
Author: https://github.com/awesomekling
Commit: 5713c3a0cb
4 changed files with 7 additions and 4 deletions
|
@ -72,7 +72,7 @@ bool Scheduler::pick_next()
|
|||
|
||||
if (thread.state() == Thread::BlockedWait) {
|
||||
process.for_each_child([&] (Process& child) {
|
||||
if (child.state() != Thread::Dead)
|
||||
if (!child.is_dead())
|
||||
return true;
|
||||
if (thread.waitee_pid() == -1 || thread.waitee_pid() == child.pid()) {
|
||||
thread.m_waitee_pid = child.pid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue