mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Mark sys$setpgid as not needing the big lock
This function is already serialized by access to process protected data.
This commit is contained in:
parent
84ac957d7a
commit
e219662ce0
Notes:
sideshowbarker
2024-07-16 23:55:09 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e219662ce0 Pull-request: https://github.com/SerenityOS/serenity/pull/18188
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ enum class NeedsBigProcessLock {
|
|||
S(setgroups, NeedsBigProcessLock::No) \
|
||||
S(sethostname, NeedsBigProcessLock::No) \
|
||||
S(setkeymap, NeedsBigProcessLock::No) \
|
||||
S(setpgid, NeedsBigProcessLock::Yes) \
|
||||
S(setpgid, NeedsBigProcessLock::No) \
|
||||
S(setregid, NeedsBigProcessLock::No) \
|
||||
S(setresgid, NeedsBigProcessLock::No) \
|
||||
S(setresuid, NeedsBigProcessLock::No) \
|
||||
|
|
|
@ -88,7 +88,7 @@ SessionID Process::get_sid_from_pgid(ProcessGroupID pgid)
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$setpgid(pid_t specified_pid, pid_t specified_pgid)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::proc));
|
||||
ProcessID pid = specified_pid ? ProcessID(specified_pid) : this->pid();
|
||||
if (specified_pgid < 0) {
|
||||
|
|
Loading…
Reference in a new issue