mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:07:44 +00:00
Kernel: Store Thread name as a KString
This commit is contained in:
parent
07599b48de
commit
d5d8fba579
8 changed files with 43 additions and 33 deletions
|
@ -634,7 +634,7 @@ KResult Process::do_exec(NonnullRefPtr<FileDescription> main_program_description
|
|||
// NOTE: Be careful to not trigger any page faults below!
|
||||
|
||||
m_name = parts.take_last();
|
||||
new_main_thread->set_name(m_name);
|
||||
new_main_thread->set_name(KString::try_create(m_name));
|
||||
|
||||
{
|
||||
ProtectedDataMutationScope scope { *this };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue