mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
Kernel: Fix broken destruction order for Process/Thread.
This commit is contained in:
@@ -617,7 +617,7 @@ Process::Process(String&& name, uid_t uid, gid_t gid, pid_t ppid, RingLevel ring
|
||||
|
||||
Process::~Process()
|
||||
{
|
||||
dbgprintf("~Process{%p} name=%s pid=%d\n", this, m_name.characters(), pid());
|
||||
dbgprintf("~Process{%p} name=%s pid=%d, m_fds=%d\n", this, m_name.characters(), pid(), m_fds.size());
|
||||
InterruptDisabler disabler;
|
||||
system.nprocess--;
|
||||
|
||||
@@ -1930,6 +1930,8 @@ void Process::finalize()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_dead = true;
|
||||
}
|
||||
|
||||
void Process::die()
|
||||
|
||||
Reference in New Issue
Block a user