Kernel: kill() with negative pid actually matches pgid

This commit is contained in:
Bananymous 2023-08-22 14:54:15 +03:00
parent f1ba5c7e0f
commit ef1077fd7b
1 changed files with 1 additions and 1 deletions

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)