diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-25 00:13:54 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-25 00:13:54 +0100 |
commit | b896d4b237760edd8aac8fd11240178a641fd968 (patch) | |
tree | 02e773ba83fd92e8f153c1412671cbc2b5eb2cbb /Kernel/MasterPTY.h | |
parent | d7d78670c901ab97a45a3e346cc955826db412ae (diff) | |
download | serenity-b896d4b237760edd8aac8fd11240178a641fd968.zip |
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.
Diffstat (limited to 'Kernel/MasterPTY.h')
-rw-r--r-- | Kernel/MasterPTY.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/MasterPTY.h b/Kernel/MasterPTY.h index c7ba83ba2b..cc375feab6 100644 --- a/Kernel/MasterPTY.h +++ b/Kernel/MasterPTY.h @@ -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 |