1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00

Kernel: Don't disable interrupts during Thread destruction.

This commit is contained in:
Andreas Kling 2019-03-27 14:30:13 +01:00
parent d5508e5116
commit 1592612a60

View file

@ -612,8 +612,10 @@ Process::Process(String&& name, uid_t uid, gid_t gid, pid_t ppid, RingLevel ring
Process::~Process()
{
dbgprintf("~Process{%p} name=%s pid=%d, m_fds=%d\n", this, m_name.characters(), pid(), m_fds.size());
InterruptDisabler disabler;
system.nprocess--;
{
InterruptDisabler disabler;
system.nprocess--;
}
delete m_main_thread;
m_main_thread = nullptr;