summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorNikolai Nechaev <nikolay_nechaev@mail.ru>2025-10-11 00:03:34 +0900
committerGitHub <noreply@github.com>2025-10-10 17:03:34 +0200
commitda31e82aabd1e2f5178aa303133db8132a0c298a (patch)
treecb3ee193b60f17e6a0a48baf60c6ddaa3483d06e /src/main.cpp
parent32f323332414e5633a3412270c35018a53219946 (diff)
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.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
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.