summaryrefslogtreecommitdiff
path: root/Kernel/TTY.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-05 12:55:19 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-05 12:55:19 +0100
commit2a0700af9ac4917c0f653350717f033621db9235 (patch)
tree67483edc6c60a9df9f2adf68055a3a4558650d92 /Kernel/TTY.h
parent378e20c535a3f8b7f6f5519a1a3fe6b1c4949a12 (diff)
downloadserenity-2a0700af9ac4917c0f653350717f033621db9235.zip
Kernel: Closing a MasterPTY should generate a TTY hangup.
Diffstat (limited to 'Kernel/TTY.h')
-rw-r--r--Kernel/TTY.h5
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;