From ec6ceb4c8d323641c80f93124b58c42b48da9587 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 11 Dec 2024 19:13:12 +0100 Subject: [PATCH] init: Fix infinite wait loop Since waitpid always sends a SIGCHLD now, we'd handle a SIGCHLD after returning from waitpid, which would trigger another wait, looping forever and not actually handling the wait. --- system/init.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/system/init.cpp b/system/init.cpp index 7215d45a..43f8b25b 100644 --- a/system/init.cpp +++ b/system/init.cpp @@ -426,8 +426,6 @@ Result luna_main(int argc, char** argv) "change the default service path (/etc/init or /etc/user)"); parser.parse(argc, argv); - signal(SIGCHLD, wait_for_child); - if (user) return user_init(service_path); return sysinit(service_path); }