mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:27:44 +00:00
Kernel: Mark sys$sigpending as not needing the big lock
Another one that only touches the current thread.
This commit is contained in:
parent
e9fe0ecbae
commit
f0b5c585f2
2 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ enum class NeedsBigProcessLock {
|
|||
S(shutdown, NeedsBigProcessLock::No) \
|
||||
S(sigaction, NeedsBigProcessLock::Yes) \
|
||||
S(sigaltstack, NeedsBigProcessLock::Yes) \
|
||||
S(sigpending, NeedsBigProcessLock::Yes) \
|
||||
S(sigpending, NeedsBigProcessLock::No) \
|
||||
S(sigprocmask, NeedsBigProcessLock::No) \
|
||||
S(sigreturn, NeedsBigProcessLock::No) \
|
||||
S(sigsuspend, NeedsBigProcessLock::No) \
|
||||
|
|
|
@ -43,7 +43,7 @@ ErrorOr<FlatPtr> Process::sys$sigprocmask(int how, Userspace<sigset_t const*> se
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$sigpending(Userspace<sigset_t*> set)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::stdio));
|
||||
auto pending_signals = Thread::current()->pending_signals();
|
||||
TRY(copy_to_user(set, &pending_signals));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue