mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Flip incorrect bitwise set/clear of signal mask
This commit is contained in:
parent
1397a5ab02
commit
13d98999b7
Notes:
sideshowbarker
2024-07-17 22:54:54 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/13d98999b76 Pull-request: https://github.com/SerenityOS/serenity/pull/11216 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 2 additions and 2 deletions
|
@ -674,9 +674,9 @@ u32 Thread::signal_mask_block(sigset_t signal_set, bool block)
|
|||
SpinlockLocker lock(g_scheduler_lock);
|
||||
auto previous_signal_mask = m_signal_mask;
|
||||
if (block)
|
||||
m_signal_mask &= ~signal_set;
|
||||
else
|
||||
m_signal_mask |= signal_set;
|
||||
else
|
||||
m_signal_mask &= ~signal_set;
|
||||
m_have_any_unmasked_pending_signals.store((pending_signals_for_state() & ~m_signal_mask) != 0, AK::memory_order_release);
|
||||
return previous_signal_mask;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue