mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-20 06:36:16 +00:00
Kernel+LibC: Share definitions for signal.h
This commit is contained in:
@@ -811,7 +811,7 @@ bool Thread::should_ignore_signal(u8 signal) const
|
||||
auto& action = m_signal_action_data[signal];
|
||||
if (action.handler_or_sigaction.is_null())
|
||||
return default_signal_action(signal) == DefaultSignalAction::Ignore;
|
||||
if (action.handler_or_sigaction.as_ptr() == SIG_IGN)
|
||||
if ((sighandler_t)action.handler_or_sigaction.as_ptr() == SIG_IGN)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
@@ -923,7 +923,7 @@ DispatchSignalResult Thread::dispatch_signal(u8 signal)
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
if (handler_vaddr.as_ptr() == SIG_IGN) {
|
||||
if ((sighandler_t)handler_vaddr.as_ptr() == SIG_IGN) {
|
||||
dbgln_if(SIGNAL_DEBUG, "Ignored signal {}", signal);
|
||||
return DispatchSignalResult::Continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user