summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-04-04 07:22:36 +0200
committerAndreas Kling <kling@serenityos.org>2023-04-05 11:37:27 +0200
commit350e5f9261e2183901dd27d1ddc172741f843c12 (patch)
tree693ab398ea2e6c6a5d4fb370fdaa187925b26b17
parentca1f8cac6694750f554672a72b83dda578517339 (diff)
downloadserenity-350e5f9261e2183901dd27d1ddc172741f843c12.zip
Kernel: Remove ancient InterruptDisabler in sys$setsid
This was some pre-SMP historical artifact.
-rw-r--r--Kernel/Syscalls/setpgid.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Kernel/Syscalls/setpgid.cpp b/Kernel/Syscalls/setpgid.cpp
index 8812f86c92..11333df583 100644
--- a/Kernel/Syscalls/setpgid.cpp
+++ b/Kernel/Syscalls/setpgid.cpp
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <Kernel/InterruptDisabler.h>
#include <Kernel/Process.h>
#include <Kernel/TTY/TTY.h>
@@ -29,7 +28,6 @@ ErrorOr<FlatPtr> Process::sys$setsid()
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
TRY(require_promise(Pledge::proc));
- InterruptDisabler disabler;
bool found_process_with_same_pgid_as_my_pid = false;
TRY(Process::for_each_in_pgrp_in_same_jail(pid().value(), [&](auto&) -> ErrorOr<void> {
found_process_with_same_pgid_as_my_pid = true;