summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/misc.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 /hyprtester/src/tests/main/misc.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 'hyprtester/src/tests/main/misc.cpp')
-rw-r--r--hyprtester/src/tests/main/misc.cpp4
1 files changed, 4 insertions, 0 deletions
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();