diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-07 12:53:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-07 13:53:14 +0200 |
commit | 55b0b06897b7160b5fbc18ff9186a2242bbdf318 (patch) | |
tree | 02ba4614e201ed5ca777e9de392c30e1ed8b935e /Kernel/Net | |
parent | db2e67fd53facb5120f565bff761abf9a6d99cb6 (diff) | |
download | serenity-55b0b06897b7160b5fbc18ff9186a2242bbdf318.zip |
Kernel: Store process names as KString
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/NetworkTask.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Kernel/Net/NetworkTask.cpp b/Kernel/Net/NetworkTask.cpp index 42b68f72de..66c2d8785b 100644 --- a/Kernel/Net/NetworkTask.cpp +++ b/Kernel/Net/NetworkTask.cpp @@ -43,7 +43,10 @@ static HashTable<RefPtr<TCPSocket>>* delayed_ack_sockets; void NetworkTask::spawn() { RefPtr<Thread> thread; - Process::create_kernel_process(thread, "NetworkTask", NetworkTask_main, nullptr); + auto name = KString::try_create("NetworkTask"); + if (name.is_error()) + TODO(); + Process::create_kernel_process(thread, name.release_value(), NetworkTask_main, nullptr); network_task = thread; } |