1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

Kernel: Fix broken destruction order for Process/Thread.

This commit is contained in:
Andreas Kling 2019-03-24 01:20:35 +01:00
parent b6cd66c3b5
commit 5713c3a0cb
4 changed files with 7 additions and 4 deletions

View file

@ -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()