mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
DevPtsFS: Do not assume there is one of it
Unfortunately, that also means it can no longer inherit from SynthFS.
This commit is contained in:
parent
37cc80fb96
commit
66a0a12435
Notes:
sideshowbarker
2024-07-19 12:39:32 +09:00
Author: https://github.com/bugaevc
Commit: 66a0a12435
Pull-request: https://github.com/SerenityOS/serenity/pull/456
Reviewed-by: https://github.com/awesomekling ✅
5 changed files with 188 additions and 45 deletions
|
@ -13,7 +13,7 @@ SlavePTY::SlavePTY(MasterPTY& master, unsigned index)
|
|||
m_tty_name = String::format("/dev/pts/%u", m_index);
|
||||
set_uid(current->process().uid());
|
||||
set_gid(current->process().gid());
|
||||
DevPtsFS::the().register_slave_pty(*this);
|
||||
DevPtsFS::register_slave_pty(*this);
|
||||
set_size(80, 25);
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ SlavePTY::~SlavePTY()
|
|||
#ifdef SLAVEPTY_DEBUG
|
||||
dbgprintf("~SlavePTY(%u)\n", m_index);
|
||||
#endif
|
||||
DevPtsFS::the().unregister_slave_pty(*this);
|
||||
DevPtsFS::unregister_slave_pty(*this);
|
||||
}
|
||||
|
||||
String SlavePTY::tty_name() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue