mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +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
|
@ -12,6 +12,7 @@ MasterPTY::MasterPTY(unsigned index)
|
|||
|
||||
MasterPTY::~MasterPTY()
|
||||
{
|
||||
dbgprintf("~MasterPTY(%u)\n", m_index);
|
||||
PTYMultiplexer::the().notify_master_destroyed(Badge<MasterPTY>(), m_index);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue