summaryrefslogtreecommitdiff
path: root/Kernel/Net
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-07 12:53:28 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-07 13:53:14 +0200
commit55b0b06897b7160b5fbc18ff9186a2242bbdf318 (patch)
tree02ba4614e201ed5ca777e9de392c30e1ed8b935e /Kernel/Net
parentdb2e67fd53facb5120f565bff761abf9a6d99cb6 (diff)
downloadserenity-55b0b06897b7160b5fbc18ff9186a2242bbdf318.zip
Kernel: Store process names as KString
Diffstat (limited to 'Kernel/Net')
-rw-r--r--Kernel/Net/NetworkTask.cpp5
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;
}