diff options
author | Andreas Kling <kling@serenityos.org> | 2023-04-04 16:42:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-05 11:37:27 +0200 |
commit | f764b8b11384fdad1dd8ebc2d1f2cc479fcfba12 (patch) | |
tree | fd6f54cdbfaf2ebf6b147722aadf9df6d69c0c05 /Kernel/Syscalls | |
parent | 3e30d9bc99728f4d4b6e877abb899502873815af (diff) | |
download | serenity-f764b8b11384fdad1dd8ebc2d1f2cc479fcfba12.zip |
Kernel: Mark sys$setsid as not needing the big lock
This function is now serialized by access to the process group list,
and to the current process's protected data.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/setpgid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/setpgid.cpp b/Kernel/Syscalls/setpgid.cpp index bfc95acde8..c52da585b5 100644 --- a/Kernel/Syscalls/setpgid.cpp +++ b/Kernel/Syscalls/setpgid.cpp @@ -26,7 +26,7 @@ ErrorOr<FlatPtr> Process::sys$getsid(pid_t pid) ErrorOr<FlatPtr> Process::sys$setsid() { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); + VERIFY_NO_PROCESS_BIG_LOCK(this); TRY(require_promise(Pledge::proc)); // NOTE: ProcessGroup::create_if_unused_pgid() will fail with EPERM |