diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-05 12:55:19 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-05 12:55:19 +0100 |
commit | 2a0700af9ac4917c0f653350717f033621db9235 (patch) | |
tree | 67483edc6c60a9df9f2adf68055a3a4558650d92 /Kernel/TTY.h | |
parent | 378e20c535a3f8b7f6f5519a1a3fe6b1c4949a12 (diff) | |
download | serenity-2a0700af9ac4917c0f653350717f033621db9235.zip |
Kernel: Closing a MasterPTY should generate a TTY hangup.
Diffstat (limited to 'Kernel/TTY.h')
-rw-r--r-- | Kernel/TTY.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/TTY.h b/Kernel/TTY.h index 686f69dbd7..80f4b284e1 100644 --- a/Kernel/TTY.h +++ b/Kernel/TTY.h @@ -30,6 +30,7 @@ public: bool in_canonical_mode() const { return m_termios.c_lflag & ICANON; } void set_default_termios(); + void hang_up(); protected: virtual void on_tty_write(const byte*, size_t) = 0; @@ -38,12 +39,12 @@ protected: TTY(unsigned major, unsigned minor); void emit(byte); + void generate_signal(int signal); + private: // ^CharacterDevice virtual bool is_tty() const final override { return true; } - void generate_signal(int signal); - DoubleBuffer m_buffer; pid_t m_pgid { 0 }; termios m_termios; |