1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

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:
Gunnar Beutner 2021-04-19 11:07:19 +02:00 committed by Andreas Kling
parent 75d41657d5
commit db3fd11646

View file

@ -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(&params, user_params))
return EFAULT;