Kernel: Mark sys$sigprocmask as not needing the big lock

Another one that only messes with the current thread.
This commit is contained in:
Andreas Kling 2023-04-03 16:24:01 +02:00
commit e9fe0ecbae
Notes: sideshowbarker 2024-07-17 09:49:48 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -177,7 +177,7 @@ enum class NeedsBigProcessLock {
S(sigaction, NeedsBigProcessLock::Yes) \
S(sigaltstack, NeedsBigProcessLock::Yes) \
S(sigpending, NeedsBigProcessLock::Yes) \
S(sigprocmask, NeedsBigProcessLock::Yes) \
S(sigprocmask, NeedsBigProcessLock::No) \
S(sigreturn, NeedsBigProcessLock::No) \
S(sigsuspend, NeedsBigProcessLock::No) \
S(sigtimedwait, NeedsBigProcessLock::Yes) \

View file

@ -13,7 +13,7 @@ namespace Kernel {
ErrorOr<FlatPtr> Process::sys$sigprocmask(int how, Userspace<sigset_t const*> set, Userspace<sigset_t*> old_set)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
TRY(require_promise(Pledge::sigaction));
auto* current_thread = Thread::current();
u32 previous_signal_mask;