From 05653a9189dc04991765409e780847e45b4e5f68 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 3 Jan 2020 02:04:51 +0100 Subject: [PATCH] Kernel: killpg() with pgrp=0 should signal every process in the group In the same group as the calling process, that is. --- Kernel/Process.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 8c194fdd7e..cd7f62c0d4 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -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); }