From ef29b35258ec3382981cd3acc1442f9494a8019a Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Mon, 13 May 2019 18:52:38 +0100 Subject: [PATCH] Make sure we don't leave a hanging gamemode request from the child process Otherwise other tests might have to wait for the reaper thread to clean it up --- daemon/gamemode-tests.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/gamemode-tests.c b/daemon/gamemode-tests.c index 8e0ed4f..3129935 100644 --- a/daemon/gamemode-tests.c +++ b/daemon/gamemode-tests.c @@ -627,6 +627,7 @@ static pid_t run_tests_on_process_tree(int innactive, int active, int (*func)(pi fail |= (active != func(info[i].this)); if (fail) { LOG_ERROR("values for threads were not set correctly!\n"); + gamemode_request_end(); exit(-1); }