mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 05:25:13 +00:00
Kernel: A running process should keep its TTY alive
It's not safe to use a raw pointer for Process::m_tty. A pseudoterminal pair will disappear when file descriptors are closed, and we'd end up looking dangly. Just use a RefPtr.
This commit is contained in:
parent
083c5f8b89
commit
2f16e31afc
Notes:
sideshowbarker
2024-07-19 11:21:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2f16e31afcf
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ private:
|
|||
RefPtr<Custody> m_executable;
|
||||
RefPtr<Custody> m_cwd;
|
||||
|
||||
TTY* m_tty { nullptr };
|
||||
RefPtr<TTY> m_tty;
|
||||
|
||||
Region* region_from_range(const Range&);
|
||||
Region* region_containing(const Range&);
|
||||
|
|
Loading…
Add table
Reference in a new issue