mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
UserspaceEmulator: Implement signal masking
This commit is contained in:
parent
335183d0e9
commit
a92719fc72
Notes:
sideshowbarker
2024-07-17 20:02:57 +09:00
Author: https://github.com/Rummskartoffel
Commit: a92719fc72
Pull-request: https://github.com/SerenityOS/serenity/pull/12180
1 changed files with 3 additions and 0 deletions
|
@ -593,6 +593,9 @@ void Emulator::dispatch_one_pending_signal()
|
|||
VERIFY(signum != -1);
|
||||
m_pending_signals &= ~(1 << signum);
|
||||
|
||||
if (((1 << (signum - 1)) & m_signal_mask) != 0)
|
||||
return;
|
||||
|
||||
auto& handler = m_signal_handler[signum];
|
||||
|
||||
if (handler.handler == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue