mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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:
parent
75d41657d5
commit
db3fd11646
Notes:
sideshowbarker
2024-07-18 19:19:42 +09:00
Author: https://github.com/gunnarbeutner
Commit: db3fd11646
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)
|
KResultOr<int> Process::sys$futex(Userspace<const Syscall::SC_futex_params*> user_params)
|
||||||
{
|
{
|
||||||
REQUIRE_PROMISE(thread);
|
|
||||||
|
|
||||||
Syscall::SC_futex_params params;
|
Syscall::SC_futex_params params;
|
||||||
if (!copy_from_user(¶ms, user_params))
|
if (!copy_from_user(¶ms, user_params))
|
||||||
return EFAULT;
|
return EFAULT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue