mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
Kernel: Closing a MasterPTY should generate a TTY hangup.
This commit is contained in:
parent
378e20c535
commit
2a0700af9a
4 changed files with 13 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue