diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-22 21:12:55 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-23 18:28:59 +0200 |
commit | 06de0e670cc94c908987462f04b01512b6010c25 (patch) | |
tree | df42fde94533798b3414477a6e639dcec301d314 /Kernel/Process.h | |
parent | 748b38d80f3db5f962cc7c94794d67cf7544dfa0 (diff) | |
download | serenity-06de0e670cc94c908987462f04b01512b6010c25.zip |
Kernel: Use IteratorDecision in Process::for_each_in_pgrp()
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r-- | Kernel/Process.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index d09f3d7f1a..919df12f56 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -456,7 +456,7 @@ inline void Process::for_each_in_pgrp(pid_t pgid, Callback callback) for (auto* process = g_processes->head(); process;) { auto* next_process = process->next(); if (process->pgid() == pgid) { - if (!callback(*process)) + if (callback(*process) == IterationDecision::Break) break; } process = next_process; |