summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-22 21:12:55 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-23 18:28:59 +0200
commit06de0e670cc94c908987462f04b01512b6010c25 (patch)
treedf42fde94533798b3414477a6e639dcec301d314 /Kernel/Process.h
parent748b38d80f3db5f962cc7c94794d67cf7544dfa0 (diff)
downloadserenity-06de0e670cc94c908987462f04b01512b6010c25.zip
Kernel: Use IteratorDecision in Process::for_each_in_pgrp()
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h2
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;