diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2019-08-16 18:46:18 +0300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-17 12:07:55 +0200 |
commit | 66a0a12435dbea6e4c7a773fe317d38c79f697f0 (patch) | |
tree | c6113850b5aebad0ca28f40707798626b1037faa /Kernel/TTY/SlavePTY.cpp | |
parent | 37cc80fb965304319f5c5a56c047fed82e4e16ed (diff) | |
download | serenity-66a0a12435dbea6e4c7a773fe317d38c79f697f0.zip |
DevPtsFS: Do not assume there is one of it
Unfortunately, that also means it can no longer inherit from SynthFS.
Diffstat (limited to 'Kernel/TTY/SlavePTY.cpp')
-rw-r--r-- | Kernel/TTY/SlavePTY.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/TTY/SlavePTY.cpp b/Kernel/TTY/SlavePTY.cpp index 5f227b50da..129eb00e07 100644 --- a/Kernel/TTY/SlavePTY.cpp +++ b/Kernel/TTY/SlavePTY.cpp @@ -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 |