mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Kernel: Store process names as KString
This commit is contained in:
parent
db2e67fd53
commit
55b0b06897
Notes:
sideshowbarker
2024-07-18 04:32:05 +09:00
Author: https://github.com/awesomekling
Commit: 55b0b06897
15 changed files with 46 additions and 32 deletions
|
@ -446,12 +446,12 @@ KResult Process::do_exec(NonnullRefPtr<FileDescription> main_program_description
|
|||
if (!validate_stack_size(arguments, environment))
|
||||
return E2BIG;
|
||||
|
||||
auto parts = path.split('/');
|
||||
auto parts = path.split_view('/');
|
||||
if (parts.is_empty())
|
||||
return ENOENT;
|
||||
|
||||
auto new_process_name = parts.take_last();
|
||||
auto new_main_thread_name = TRY(KString::try_create(new_process_name));
|
||||
auto new_process_name = TRY(KString::try_create(parts.last()));
|
||||
auto new_main_thread_name = TRY(new_process_name->try_clone());
|
||||
|
||||
auto main_program_metadata = main_program_description->metadata();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue