summaryrefslogtreecommitdiff
path: root/Kernel/TTY/MasterPTY.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/TTY/MasterPTY.cpp')
-rw-r--r--Kernel/TTY/MasterPTY.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/TTY/MasterPTY.cpp b/Kernel/TTY/MasterPTY.cpp
index bb6ad80228..d669ea60b7 100644
--- a/Kernel/TTY/MasterPTY.cpp
+++ b/Kernel/TTY/MasterPTY.cpp
@@ -22,6 +22,8 @@ KResultOr<NonnullRefPtr<MasterPTY>> MasterPTY::try_create(unsigned int index)
auto master_pty = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) MasterPTY(index, move(buffer))));
auto slave_pty = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) SlavePTY(*master_pty, index)));
master_pty->m_slave = slave_pty;
+ master_pty->after_inserting();
+ slave_pty->after_inserting();
return master_pty;
}