Kernel: kill() with negative pid actually matches pgid

This commit is contained in:
2023-08-22 14:54:15 +03:00
parent f1ba5c7e0f
commit ef1077fd7b

View File

@@ -911,7 +911,7 @@ namespace Kernel
for_each_process( for_each_process(
[&](Process& process) [&](Process& process)
{ {
if (pid == process.pid() || -pid == process.pid()) if (pid == process.pid() || -pid == process.pgrp())
{ {
found = true; found = true;
if (signal) if (signal)