From 3108daecc5841236bfc596e1321d6e1503278a60 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 3 Apr 2023 18:36:27 +0200 Subject: [PATCH] Kernel: Remove ancient InterruptDisablers in the kill/killpg syscalls These are artifacts from the pre-SMP times. --- Kernel/Syscalls/kill.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Kernel/Syscalls/kill.cpp b/Kernel/Syscalls/kill.cpp index 77d8ba24c8..ba8e4e805e 100644 --- a/Kernel/Syscalls/kill.cpp +++ b/Kernel/Syscalls/kill.cpp @@ -1,10 +1,9 @@ /* - * Copyright (c) 2018-2020, Andreas Kling + * Copyright (c) 2018-2023, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ -#include #include namespace Kernel { @@ -34,8 +33,6 @@ ErrorOr Process::do_kill(Process& process, int signal) ErrorOr Process::do_killpg(ProcessGroupID pgrp, int signal) { - InterruptDisabler disabler; - VERIFY(pgrp >= 0); // Send the signal to all processes in the given group. @@ -68,8 +65,6 @@ ErrorOr Process::do_killpg(ProcessGroupID pgrp, int signal) ErrorOr Process::do_killall(int signal) { - InterruptDisabler disabler; - bool any_succeeded = false; ErrorOr error;