summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-16 20:18:58 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-16 20:18:58 +0100
commita788e85c0997cfb50fae0b1ec0b70ef68f461ded (patch)
treeb7fb5e42b4747225f59b2c9b7c0ee791fbe0f185 /Kernel/Process.cpp
parent4e2c2b9748e8cc505d52575a76f0dd6808bc6a17 (diff)
downloadserenity-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.cpp5
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;