Skip to content

Commit

Permalink
Kernel: Always disable interrupts in do_killpg()
Browse files Browse the repository at this point in the history
Will caught an assertion when running "kill 9999999999999" :^)
  • Loading branch information
awesomekling committed Feb 27, 2020
1 parent 4a293e8 commit 4997dcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Kernel/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2101,7 +2101,6 @@ int Process::sys$killpg(int pgrp, int signum)
if (pgrp < 0)
return -EINVAL;

InterruptDisabler disabler;
return do_killpg(pgrp, signum);
}

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4997dcd

Please sign in to comment.