mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:18:12 +00:00
UserspaceEmulator: Implement signal masking
This commit is contained in:
parent
335183d0e9
commit
a92719fc72
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