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:
Andreas Kling 2019-02-04 10:21:15 +01:00
parent 9126d08a43
commit 356abbb7ee
Notes: sideshowbarker 2024-07-19 15:52:39 +09:00

View file

@ -2170,6 +2170,7 @@ void Process::die()
{
set_state(Dead);
m_fds.clear();
m_tty = nullptr;
destroy_all_windows();
}