Kernel: Always disable interrupts in do_killpg()

Will caught an assertion when running "kill 9999999999999" :^)
This commit is contained in:
Andreas Kling 2020-02-27 11:05:16 +01:00
parent 4a293e8a21
commit 4997dcde06

View file

@ -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.