diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-16 20:18:58 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-16 20:18:58 +0100 |
commit | a788e85c0997cfb50fae0b1ec0b70ef68f461ded (patch) | |
tree | b7fb5e42b4747225f59b2c9b7c0ee791fbe0f185 /Kernel/Process.cpp | |
parent | 4e2c2b9748e8cc505d52575a76f0dd6808bc6a17 (diff) | |
download | serenity-a788e85c0997cfb50fae0b1ec0b70ef68f461ded.zip |
Refactor TTY signal generation a bit.
We now respect the VINTR and VQUIT control characters in the termios.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index afdab83101..5d0b290164 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -777,6 +777,11 @@ void Process::dispatch_signal(byte signal) return terminate_due_to_signal(signal); } + if (handler_laddr.asPtr() == SIG_IGN) { + dbgprintf("%s(%u) ignored signal %u\n", name().characters(), pid(), signal); + return; + } + Scheduler::prepare_to_modify_tss(*this); word ret_cs = m_tss.cs; |