Kernel: killpg() with pgrp=0 should signal every process in the group

In the same group as the calling process, that is.
This commit is contained in:
Andreas Kling 2020-01-03 02:04:51 +01:00
commit 05653a9189
Notes: sideshowbarker 2024-07-19 10:24:31 +09:00

View file

@ -1681,7 +1681,8 @@ int Process::sys$killpg(int pgrp, int signum)
return -EINVAL;
InterruptDisabler disabler;
if (pgrp == 0)
return do_killpg(m_pgid, signum);
return do_killpg(pgrp, signum);
}