mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Kernel: Protect Process::m_name with a spinlock
This also lets us remove the `get_process_name` and `set_process_name` syscalls from the big lock. :^)
This commit is contained in:
parent
b26ecca970
commit
fe7b08dad7
13 changed files with 102 additions and 42 deletions
|
@ -647,7 +647,7 @@ ErrorOr<void> Process::do_exec(NonnullLockRefPtr<OpenFileDescription> main_progr
|
|||
// and we don't want to deal with faults after this point.
|
||||
auto new_userspace_sp = TRY(make_userspace_context_for_main_thread(new_main_thread->regs(), *load_result.stack_region.unsafe_ptr(), m_arguments, m_environment, move(auxv)));
|
||||
|
||||
m_name = move(new_process_name);
|
||||
set_name(move(new_process_name));
|
||||
new_main_thread->set_name(move(new_main_thread_name));
|
||||
|
||||
if (wait_for_tracer_at_next_execve()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue