diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-11 22:40:40 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-11 22:40:40 +0100 |
commit | a0506cb39e9b1cf67c454a2ccc9473b8cbcd5cd0 (patch) | |
tree | e405d28b7ad5000f8a62288fe1622c349c763c96 /Kernel/TTY | |
parent | e5234f9560d55d681b61b7b0ab4c3de8c9e8d93a (diff) | |
download | serenity-a0506cb39e9b1cf67c454a2ccc9473b8cbcd5cd0.zip |
Kernel: Only send SIGTTOU if TTY termios has TOSTOP flag
Fixes #4909
Diffstat (limited to 'Kernel/TTY')
-rw-r--r-- | Kernel/TTY/TTY.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/TTY.cpp b/Kernel/TTY/TTY.cpp index b795966e6d..4375eef40c 100644 --- a/Kernel/TTY/TTY.cpp +++ b/Kernel/TTY/TTY.cpp @@ -103,7 +103,7 @@ KResultOr<size_t> TTY::read(FileDescription&, size_t, UserOrKernelBuffer& buffer KResultOr<size_t> TTY::write(FileDescription&, size_t, const UserOrKernelBuffer& buffer, size_t size) { - if (Process::current()->pgid() != pgid()) { + if (m_termios.c_lflag & TOSTOP && Process::current()->pgid() != pgid()) { [[maybe_unused]] auto rc = Process::current()->send_signal(SIGTTOU, nullptr); return KResult(-EINTR); } |