mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user