mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Kernel: Process should disassociate from its TTY when it dies.
Just because we die doesn't mean we got waited on yet, so keeping around a dangling TTY pointer is just asking for trouble.
This commit is contained in:
@@ -2170,6 +2170,7 @@ void Process::die()
|
||||
{
|
||||
set_state(Dead);
|
||||
m_fds.clear();
|
||||
m_tty = nullptr;
|
||||
destroy_all_windows();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user