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/FileSystem | |
parent | db2e67fd53facb5120f565bff761abf9a6d99cb6 (diff) | |
download | serenity-55b0b06897b7160b5fbc18ff9186a2242bbdf318.zip |
Kernel: Store process names as KString
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/Plan9FileSystem.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Kernel/FileSystem/Plan9FileSystem.cpp b/Kernel/FileSystem/Plan9FileSystem.cpp index 40e5f47936..4f27c1cf28 100644 --- a/Kernel/FileSystem/Plan9FileSystem.cpp +++ b/Kernel/FileSystem/Plan9FileSystem.cpp @@ -655,7 +655,10 @@ void Plan9FS::ensure_thread() { SpinlockLocker lock(m_thread_lock); if (!m_thread_running.exchange(true, AK::MemoryOrder::memory_order_acq_rel)) { - Process::create_kernel_process(m_thread, "Plan9FS", [&]() { + auto process_name = KString::try_create("Plan9FS"); + if (process_name.is_error()) + TODO(); + Process::create_kernel_process(m_thread, process_name.release_value(), [&]() { thread_main(); m_thread_running.store(false, AK::MemoryOrder::memory_order_release); }); |