Kernel: Remove big lock from sys$set_coredump_metadata

The only requirement for this syscall is to make
Process::m_coredump_properties SpinlockProtected.
This commit is contained in:
Luke Wilde 2022-04-09 18:30:20 +01:00 committed by Andreas Kling
parent 343aec2200
commit 1682b0b6d8
Notes: sideshowbarker 2024-07-17 14:14:14 +09:00
5 changed files with 25 additions and 18 deletions

View file

@ -525,8 +525,9 @@ ErrorOr<void> Process::do_exec(NonnullRefPtr<OpenFileDescription> main_program_d
return {};
}));
for (auto& property : m_coredump_properties)
m_coredump_properties.for_each([](auto& property) {
property = {};
});
auto* current_thread = Thread::current();
current_thread->reset_signals_for_exec();