From d58eb3bf2154ae85bdc131030873d84b26e88d7d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 31 May 2019 07:19:54 +0200 Subject: Kernel: Process finalization should release cwd and executable custodies. Since Process destruction happens with interrupts disabled, it's not safe to still hold custodies at that point. Drop them in finalization. --- Kernel/Process.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Kernel/Process.cpp') diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 42b9636cc5..4ae3d67f76 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -2010,6 +2010,8 @@ void Process::finalize() m_fds.clear(); m_tty = nullptr; + m_executable = nullptr; + m_cwd = nullptr; disown_all_shared_buffers(); { InterruptDisabler disabler; -- cgit v1.2.3