summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-04-04 16:54:21 +0200
committerAndreas Kling <kling@serenityos.org>2023-04-05 11:37:27 +0200
commite219662ce058ff0544a4735dc4b303d48dd7f6d7 (patch)
tree13c2213721e3c5faad2f6653ce9855ef3c5aad75 /Kernel/Syscalls
parent84ac957d7ae09e20bd817500d3bd718742b9f0a0 (diff)
downloadserenity-e219662ce058ff0544a4735dc4b303d48dd7f6d7.zip
Kernel: Mark sys$setpgid as not needing the big lock
This function is already serialized by access to process protected data.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r--Kernel/Syscalls/setpgid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/setpgid.cpp b/Kernel/Syscalls/setpgid.cpp
index 00c0db0faf..7c768f16a1 100644
--- a/Kernel/Syscalls/setpgid.cpp
+++ b/Kernel/Syscalls/setpgid.cpp
@@ -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) {