Kernel: Remove requirement for the thread entitlement for the futex syscall
GCC inserts calls to pthread_mutex_lock when compiling C++ code with threads enabled.
This commit is contained in:
parent
75d41657d5
commit
db3fd11646
Notes:
sideshowbarker
2024-07-18 19:19:42 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/db3fd116461 Pull-request: https://github.com/SerenityOS/serenity/pull/6343
1 changed files with 0 additions and 2 deletions
|
@ -104,8 +104,6 @@ void Process::clear_futex_queues_on_exec()
|
|||
|
||||
KResultOr<int> Process::sys$futex(Userspace<const Syscall::SC_futex_params*> user_params)
|
||||
{
|
||||
REQUIRE_PROMISE(thread);
|
||||
|
||||
Syscall::SC_futex_params params;
|
||||
if (!copy_from_user(¶ms, user_params))
|
||||
return EFAULT;
|
||||
|
|
Loading…
Add table
Reference in a new issue