From 4997dcde06ca91718f775ffb002d3c459ab23679 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 27 Feb 2020 11:05:16 +0100 Subject: [PATCH] Kernel: Always disable interrupts in do_killpg() Will caught an assertion when running "kill 9999999999999" :^) --- Kernel/Process.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 93085f6c9d..1c9250e2d8 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -2101,7 +2101,6 @@ int Process::sys$killpg(int pgrp, int signum) if (pgrp < 0) return -EINVAL; - InterruptDisabler disabler; return do_killpg(pgrp, signum); } @@ -2173,6 +2172,8 @@ KResult Process::do_kill(Process& process, int signal) KResult Process::do_killpg(pid_t pgrp, int signal) { + InterruptDisabler disabler; + ASSERT(pgrp >= 0); // Send the signal to all processes in the given group.