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

Kernel: Make process list a singleton

This commit is contained in:
Jean-Baptiste Boric 2021-07-20 12:47:46 +02:00 committed by Andreas Kling
parent 626b99ce1c
commit 8554b66d09
3 changed files with 22 additions and 18 deletions

View file

@ -66,7 +66,7 @@ KResult Process::do_killall(int signal)
// Send the signal to all processes we have access to for.
ScopedSpinLock lock(g_processes_lock);
for (auto& process : *g_processes) {
for (auto& process : processes()) {
KResult res = KSuccess;
if (process.pid() == pid())
res = do_killself(signal);