1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

Kernel: Preserve pending signals across execve(2)s

As required by posix. Also rename Thread::clear_signals to
Thread::reset_signals_for_exec since it doesn't actually clear any
pending signals, but rather does execve related signal book-keeping.
This commit is contained in:
Idan Horowitz 2021-12-11 17:40:50 +02:00
parent 31fa3f8b1b
commit 81a76a30a1
3 changed files with 4 additions and 4 deletions

View file

@ -524,7 +524,7 @@ ErrorOr<void> Process::do_exec(NonnullRefPtr<OpenFileDescription> main_program_d
property = {};
auto* current_thread = Thread::current();
current_thread->clear_signals();
current_thread->reset_signals_for_exec();
clear_futex_queues_on_exec();