mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Kernel: Always disable interrupts in do_killpg()
Will caught an assertion when running "kill 9999999999999" :^)
This commit is contained in:
parent
4a293e8a21
commit
4997dcde06
1 changed files with 2 additions and 1 deletions
|
@ -2101,7 +2101,6 @@ int Process::sys$killpg(int pgrp, int signum)
|
||||||
if (pgrp < 0)
|
if (pgrp < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
InterruptDisabler disabler;
|
|
||||||
return do_killpg(pgrp, signum);
|
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)
|
KResult Process::do_killpg(pid_t pgrp, int signal)
|
||||||
{
|
{
|
||||||
|
InterruptDisabler disabler;
|
||||||
|
|
||||||
ASSERT(pgrp >= 0);
|
ASSERT(pgrp >= 0);
|
||||||
|
|
||||||
// Send the signal to all processes in the given group.
|
// Send the signal to all processes in the given group.
|
||||||
|
|
Loading…
Add table
Reference in a new issue