From 38e72019c76df86837fa4cda138a3ec6406fbe01 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 22 Aug 2023 14:54:15 +0300 Subject: [PATCH] Kernel: kill() with negative pid actually matches pgid --- kernel/kernel/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kernel/Process.cpp b/kernel/kernel/Process.cpp index 711120eb38..753ab5d5fb 100644 --- a/kernel/kernel/Process.cpp +++ b/kernel/kernel/Process.cpp @@ -911,7 +911,7 @@ namespace Kernel for_each_process( [&](Process& process) { - if (pid == process.pid() || -pid == process.pid()) + if (pid == process.pid() || -pid == process.pgrp()) { found = true; if (signal)