diff options
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 c12814a37c..3d31f354d8 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -411,7 +411,7 @@ inline void Process::for_each_child(Callback callback) for (auto* process = g_processes->head(); process;) { auto* next_process = process->next(); if (process->ppid() == my_pid) { - if (!callback(*process)) + if (callback(*process) == IterationDecision::Break) break; } process = next_process; |