mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Kernel: Remove unneeded Thread::set_default_signal_dispositions
The `default_signal_action(u8 signal)` function already has the full mapping. The only caveat being that now we need to make sure the thread constructor and clear_signals() method do the work of resetting the m_signal_action_data array, instead or relying on the previous logic in set_default_signal_dispositions.
This commit is contained in:
parent
df73a86875
commit
a977cdd9ac
Notes:
sideshowbarker
2024-07-18 22:03:32 +09:00
Author: https://github.com/bgianfo
Commit: a977cdd9ac
Pull-request: https://github.com/SerenityOS/serenity/pull/5448
Reviewed-by: https://github.com/awesomekling
3 changed files with 5 additions and 13 deletions
|
@ -544,7 +544,6 @@ KResult Process::do_exec(NonnullRefPtr<FileDescription> main_program_description
|
|||
m_coredump_metadata.clear();
|
||||
|
||||
auto current_thread = Thread::current();
|
||||
current_thread->set_default_signal_dispositions();
|
||||
current_thread->clear_signals();
|
||||
|
||||
clear_futex_queues_on_exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue