mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Kernel: Remove alternative signal stack settings on execve(2)
A successful call to execve(2) removes any existing alternate signal stack.
This commit is contained in:
parent
0ca1231d8f
commit
31fa3f8b1b
Notes:
sideshowbarker
2024-07-17 22:55:07 +09:00
Author: https://github.com/IdanHo
Commit: 31fa3f8b1b
Pull-request: https://github.com/SerenityOS/serenity/pull/11216
Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 3 additions and 0 deletions
|
@ -685,6 +685,9 @@ void Thread::clear_signals()
|
||||||
m_pending_signals = 0;
|
m_pending_signals = 0;
|
||||||
m_have_any_unmasked_pending_signals.store(false, AK::memory_order_release);
|
m_have_any_unmasked_pending_signals.store(false, AK::memory_order_release);
|
||||||
m_signal_action_data.fill({});
|
m_signal_action_data.fill({});
|
||||||
|
// A successful call to execve(2) removes any existing alternate signal stack
|
||||||
|
m_alternative_signal_stack = 0;
|
||||||
|
m_alternative_signal_stack_size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Certain exceptions, such as SIGSEGV and SIGILL, put a
|
// Certain exceptions, such as SIGSEGV and SIGILL, put a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue