diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-04 14:14:21 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-06 20:36:53 +0100 |
commit | e249d751c8cdc2f65bed4c998f790d8f4bcbc66a (patch) | |
tree | 9da34d020bbd846de9dceb3aef4c26f22c2fc2ab /Kernel/Syscalls | |
parent | 1014aefe649aa50d69aa10aba647872e2ff99a93 (diff) | |
download | serenity-e249d751c8cdc2f65bed4c998f790d8f4bcbc66a.zip |
Kernel: Return ENAMETOOLONG when trying to set a too-long thread name
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp index 46e120a74a..72c2ca2354 100644 --- a/Kernel/Syscalls/thread.cpp +++ b/Kernel/Syscalls/thread.cpp @@ -187,7 +187,7 @@ ErrorOr<FlatPtr> Process::sys$set_thread_name(pid_t tid, Userspace<char const*> const size_t max_thread_name_size = 64; if (name->length() > max_thread_name_size) - return EINVAL; + return ENAMETOOLONG; auto thread = Thread::from_tid(tid); if (!thread || thread->pid() != pid()) |