From 48ee803e58a55a07c639f96e45c47138e520db25 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 14 Dec 2024 12:19:13 +0100 Subject: [PATCH] init: Avoid "No child processes" error spam --- system/init.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/system/init.cpp b/system/init.cpp index 43f8b25b..8bfac9d7 100644 --- a/system/init.cpp +++ b/system/init.cpp @@ -324,6 +324,7 @@ static void wait_for_child(int) auto rc = os::Process::wait(os::Process::ANY_CHILD, &status); if (rc.has_error()) { + if (rc.error() == ECHILD) return; do_log("[init] waitpid error %s", rc.error_string()); return; }