mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +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:
parent
9126d08a43
commit
356abbb7ee
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue