mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
Kernel+LibC: Share definitions for signal.h
This commit is contained in:
parent
9dc1350177
commit
6fd7212476
4 changed files with 77 additions and 107 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue