mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 13:55:00 +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
1 changed files with 3 additions and 0 deletions
|
@ -685,6 +685,9 @@ void Thread::clear_signals()
|
|||
m_pending_signals = 0;
|
||||
m_have_any_unmasked_pending_signals.store(false, AK::memory_order_release);
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue