mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
Kernel: Preserve signal mask across fork(2) and execve(2)
A child created via fork(2) inherits a copy of its parent's signal mask; the signal mask is preserved across execve(2).
This commit is contained in:
parent
0301180f88
commit
92a6c91f4e
3 changed files with 5 additions and 2 deletions
|
@ -523,7 +523,7 @@ ErrorOr<void> Process::do_exec(NonnullRefPtr<OpenFileDescription> main_program_d
|
|||
for (auto& property : m_coredump_properties)
|
||||
property = {};
|
||||
|
||||
auto current_thread = Thread::current();
|
||||
auto* current_thread = Thread::current();
|
||||
current_thread->clear_signals();
|
||||
|
||||
clear_futex_queues_on_exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue