PTY: Disallow infinite writing to slaves.

This way we don't buffer ungodly amounts of output in the kernel when doing
e.g "cat /dev/random" on a PTY.
This commit is contained in:
Andreas Kling 2019-01-25 00:13:54 +01:00
commit b896d4b237
Notes: sideshowbarker 2024-07-19 15:57:37 +09:00
3 changed files with 8 additions and 2 deletions

View file

@ -20,6 +20,7 @@ public:
unsigned index() const { return m_index; }
String pts_name() const;
void on_slave_write(const byte*, size_t);
bool can_write_from_slave() const;
private:
// ^CharacterDevice