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:
parent
31fa3f8b1b
commit
81a76a30a1
3 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue