summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-24 01:20:35 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-24 01:20:35 +0100
commit5713c3a0cb804a71ab4ce0ccef1aad7915ed80f7 (patch)
treeacb6cdef7e4ae432fb7823999dd16b8d9de1f9d7 /Kernel/Process.cpp
parentb6cd66c3b593d64e648b5afc1755ef8e98590cd0 (diff)
downloadserenity-5713c3a0cb804a71ab4ce0ccef1aad7915ed80f7.zip
Kernel: Fix broken destruction order for Process/Thread.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 6f771297d1..67bfa24abb 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -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()