mirror of
https://github.com/RGBCube/serenity
synced 2025-07-07 20:27:36 +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
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ private:
|
||||||
RefPtr<Custody> m_executable;
|
RefPtr<Custody> m_executable;
|
||||||
RefPtr<Custody> m_cwd;
|
RefPtr<Custody> m_cwd;
|
||||||
|
|
||||||
TTY* m_tty { nullptr };
|
RefPtr<TTY> m_tty;
|
||||||
|
|
||||||
Region* region_from_range(const Range&);
|
Region* region_from_range(const Range&);
|
||||||
Region* region_containing(const Range&);
|
Region* region_containing(const Range&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue