mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
Kernel: Always disable interrupts in do_killpg()
Will caught an assertion when running "kill 9999999999999" :^)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user