mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
Kernel: Reading from a slave PTY should give EOF if master PTY is closed.
This commit is contained in:
parent
3accdb0e93
commit
378e20c535
5 changed files with 35 additions and 7 deletions
|
@ -20,6 +20,8 @@ private:
|
|||
virtual void on_tty_write(const byte*, size_t) override;
|
||||
|
||||
// ^CharacterDevice
|
||||
virtual bool can_read(Process&) const override;
|
||||
virtual ssize_t read(Process&, byte*, size_t) override;
|
||||
virtual bool can_write(Process&) const override;
|
||||
virtual const char* class_name() const override { return "SlavePTY"; }
|
||||
virtual void close() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue