From db3fd11646189d1b5ac416eaeef19fdfcc46570e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 19 Apr 2021 11:07:19 +0200 Subject: [PATCH] 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. --- Kernel/Syscalls/futex.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Kernel/Syscalls/futex.cpp b/Kernel/Syscalls/futex.cpp index c030a2c59b..f1b7ccf320 100644 --- a/Kernel/Syscalls/futex.cpp +++ b/Kernel/Syscalls/futex.cpp @@ -104,8 +104,6 @@ void Process::clear_futex_queues_on_exec() KResultOr Process::sys$futex(Userspace user_params) { - REQUIRE_PROMISE(thread); - Syscall::SC_futex_params params; if (!copy_from_user(¶ms, user_params)) return EFAULT;