summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-04-03 18:36:27 +0200
committerAndreas Kling <kling@serenityos.org>2023-04-04 10:33:42 +0200
commit3108daecc5841236bfc596e1321d6e1503278a60 (patch)
tree5dca2ccf81b6190197ed03891c088d5e577ba303 /Kernel
parent46ab245e745ba3a90b0a6e755dcd1dc34dc38850 (diff)
downloadserenity-3108daecc5841236bfc596e1321d6e1503278a60.zip
Kernel: Remove ancient InterruptDisablers in the kill/killpg syscalls
These are artifacts from the pre-SMP times.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Syscalls/kill.cpp7
1 files changed, 1 insertions, 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 <kling@serenityos.org>
+ * Copyright (c) 2018-2023, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <Kernel/InterruptDisabler.h>
#include <Kernel/Process.h>
namespace Kernel {
@@ -34,8 +33,6 @@ ErrorOr<void> Process::do_kill(Process& process, int signal)
ErrorOr<void> 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<void> Process::do_killpg(ProcessGroupID pgrp, int signal)
ErrorOr<void> Process::do_killall(int signal)
{
- InterruptDisabler disabler;
-
bool any_succeeded = false;
ErrorOr<void> error;