mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 20:58:16 +00:00
Kernel: Add support for the WSTOPPED flag to the waitpid() syscall.
This makes waitpid() return when a child process is stopped via a signal. Use this in Shell to catch stopped children and return control to the command line. :^) Fixes #298.
This commit is contained in:
parent
de03b72979
commit
3073ea7d84
Notes:
sideshowbarker
2024-07-19 13:16:33 +09:00
Author: https://github.com/awesomekling
Commit: 3073ea7d84
6 changed files with 44 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue