mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45: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);
|
set_state(Dead);
|
||||||
m_fds.clear();
|
m_fds.clear();
|
||||||
|
m_tty = nullptr;
|
||||||
destroy_all_windows();
|
destroy_all_windows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user