init: Avoid "No child processes" error spam
All checks were successful
Build and test / build (push) Successful in 1m41s

This commit is contained in:
apio 2024-12-14 12:19:13 +01:00
parent 984200ca9a
commit 48ee803e58
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -324,6 +324,7 @@ static void wait_for_child(int)
auto rc = os::Process::wait(os::Process::ANY_CHILD, &status); auto rc = os::Process::wait(os::Process::ANY_CHILD, &status);
if (rc.has_error()) if (rc.has_error())
{ {
if (rc.error() == ECHILD) return;
do_log("[init] waitpid error %s", rc.error_string()); do_log("[init] waitpid error %s", rc.error_string());
return; return;
} }