summaryrefslogtreecommitdiff
path: root/Kernel/Thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Thread.cpp')
-rw-r--r--Kernel/Thread.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp
index ea4fc3a9a3..fef73d4e21 100644
--- a/Kernel/Thread.cpp
+++ b/Kernel/Thread.cpp
@@ -802,6 +802,12 @@ bool Thread::has_signal_handler(u8 signal) const
return !action.handler_or_sigaction.is_null();
}
+bool Thread::is_signal_masked(u8 signal) const
+{
+ VERIFY(signal < 32);
+ return (1 << (signal - 1)) & m_signal_mask;
+}
+
bool Thread::has_alternative_signal_stack() const
{
return m_alternative_signal_stack_size != 0;