mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
Kernel: Keep signal state in sync
In c3d231616c
we added the atomic variable
m_have_any_unmasked_pending_signals tracking the state of pending signals.
Add helper functions that automatically update this variable as needed.
This commit is contained in:
parent
dcc2c8a125
commit
92bfe40954
Notes:
sideshowbarker
2024-07-19 02:49:31 +09:00
Author: https://github.com/tomuta
Commit: 92bfe40954
Pull-request: https://github.com/SerenityOS/serenity/pull/3441
5 changed files with 84 additions and 19 deletions
|
@ -235,8 +235,7 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
|
|||
}
|
||||
|
||||
current_thread->set_default_signal_dispositions();
|
||||
current_thread->m_signal_mask = 0;
|
||||
current_thread->m_pending_signals = 0;
|
||||
current_thread->clear_signals();
|
||||
|
||||
m_futex_queues.clear();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue