1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 07:25:07 +00:00

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
parent 005313df82
commit 05653a9189

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);
}