mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
Let the slave PTY keep the master PTY alive.
This ownership model is a bit confusing. There's a retain cycle between MasterPTY and SlavePTY, but it's broken when the SlavePTY is closed, meaning that there are no more FileDescriptors referring to it.
This commit is contained in:
parent
45fba60ab5
commit
2b4374d08e
4 changed files with 7 additions and 4 deletions
|
@ -27,7 +27,7 @@ private:
|
|||
friend class MasterPTY;
|
||||
SlavePTY(MasterPTY&, unsigned index);
|
||||
|
||||
MasterPTY& m_master;
|
||||
RetainPtr<MasterPTY> m_master;
|
||||
unsigned m_index;
|
||||
InodeIdentifier m_devpts_inode_id;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue