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

Kernel: Port Process to ListedRefCounted

This commit is contained in:
Idan Horowitz 2021-12-29 00:46:21 +02:00 committed by Andreas Kling
parent 3d0b5efcfc
commit d7ec5d042f
4 changed files with 14 additions and 36 deletions

View file

@ -65,7 +65,7 @@ ErrorOr<void> Process::do_killall(int signal)
ErrorOr<void> error;
// Send the signal to all processes we have access to for.
processes().for_each([&](auto& process) {
Process::all_instances().for_each([&](auto& process) {
ErrorOr<void> res;
if (process.pid() == pid())
res = do_killself(signal);