mirror of
https://github.com/RGBCube/serenity
synced 2025-06-30 17:22:07 +00:00
Kernel: Dispatch handle-able signals instead of crashing if possible
This matches the behaviour of the other *nixs and allows processes to try and recover from such signals in userland.
This commit is contained in:
parent
f415218afe
commit
40f64d7379
5 changed files with 23 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue