1
Fork 0
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:
Rummskartoffel 2022-01-28 15:13:23 +01:00 committed by Andreas Kling
parent 335183d0e9
commit a92719fc72

View file

@ -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) {