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. --- hyprtester/src/tests/main/misc.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hyprtester/src/tests/main/misc.cpp') diff --git a/hyprtester/src/tests/main/misc.cpp b/hyprtester/src/tests/main/misc.cpp index 7b42af13..d5865f20 100644 --- a/hyprtester/src/tests/main/misc.cpp +++ b/hyprtester/src/tests/main/misc.cpp @@ -194,6 +194,10 @@ static bool test() { EXPECT_CONTAINS(str, "fullscreen: 2"); } + // Ensure that the process autostarted in the config does not + // become a zombie even if it terminates very quickly. + EXPECT(Tests::execAndGet("pgrep -f 'sleep 0'").empty(), true); + // kill all NLog::log("{}Killing all windows", Colors::YELLOW); Tests::killAllWindows(); -- cgit v1.2.3