mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +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
Notes:
sideshowbarker
2024-07-19 15:52:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/356abbb7ee9
1 changed files with 1 additions and 0 deletions
|
@ -2170,6 +2170,7 @@ void Process::die()
|
|||
{
|
||||
set_state(Dead);
|
||||
m_fds.clear();
|
||||
m_tty = nullptr;
|
||||
destroy_all_windows();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue