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.
This commit is contained in:
Andreas Kling 2019-05-31 07:19:54 +02:00
parent e33dadbdd6
commit d58eb3bf21
Notes: sideshowbarker 2024-07-19 13:49:37 +09:00

View File

@ -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;