From da31e82aabd1e2f5178aa303133db8132a0c298a Mon Sep 17 00:00:00 2001 From: Nikolai Nechaev Date: Sat, 11 Oct 2025 00:03:34 +0900 Subject: internal: prevent early exit processes from being zombies (#11995) Prevent `exec`/`exec-once` processes which terminate very early (before Hyprland declares that it does not want to reap zombies) from getting stuck as zombie processes. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b0f8b66c..2574d822 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -187,6 +187,8 @@ int main(int argc, char** argv) { return 1; } + reapZombieChildrenAutomatically(); + g_pCompositor->initServer(socketName, socketFd); if (verifyConfig) @@ -195,8 +197,6 @@ int main(int argc, char** argv) { if (!envEnabled("HYPRLAND_NO_RT")) NInit::gainRealTime(); - reapZombieChildrenAutomatically(); - Debug::log(LOG, "Hyprland init finished."); // If all's good to go, start. -- cgit v1.2.3