Kernel: Writing to a slave PTY should yield EIO if the master is closed.

This commit is contained in:
Andreas Kling 2019-02-05 13:09:01 +01:00
commit 0669ef8977
Notes: sideshowbarker 2024-07-19 15:51:24 +09:00
7 changed files with 14 additions and 8 deletions

View file

@ -17,7 +17,7 @@ public:
private:
// ^TTY
virtual String tty_name() const override;
virtual void on_tty_write(const byte*, size_t) override;
virtual ssize_t on_tty_write(const byte*, size_t) override;
// ^CharacterDevice
virtual bool can_read(Process&) const override;