mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel: Mark sys$getpgid as not needing the big lock
Access to the process's process group is already serialized by SpinlockProtected.
This commit is contained in:
parent
775e6d6865
commit
2ddd69260c
Notes:
sideshowbarker
2024-07-16 23:51:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2ddd69260c Pull-request: https://github.com/SerenityOS/serenity/pull/18163 Reviewed-by: https://github.com/Hendiadyoin1
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ enum class NeedsBigProcessLock {
|
|||
S(gethostname, NeedsBigProcessLock::No) \
|
||||
S(getkeymap, NeedsBigProcessLock::No) \
|
||||
S(getpeername, NeedsBigProcessLock::Yes) \
|
||||
S(getpgid, NeedsBigProcessLock::Yes) \
|
||||
S(getpgid, NeedsBigProcessLock::No) \
|
||||
S(getpgrp, NeedsBigProcessLock::Yes) \
|
||||
S(getpid, NeedsBigProcessLock::No) \
|
||||
S(getppid, NeedsBigProcessLock::No) \
|
||||
|
|
|
@ -49,7 +49,7 @@ ErrorOr<FlatPtr> Process::sys$setsid()
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$getpgid(pid_t pid)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::stdio));
|
||||
if (pid == 0)
|
||||
return pgid().value();
|
||||
|
|
Loading…
Reference in a new issue