mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
Kernel: Port Process to ListedRefCounted
This commit is contained in:
parent
3d0b5efcfc
commit
d7ec5d042f
4 changed files with 14 additions and 36 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue