Diff between 2ca2bdce02407c572fb0792dcebb9e876a3d553a and 83f34df7f8c95afb900494611edecfdf78858cf9

Changed Files

File Additions Deletions Status
src/shared/tester.c +3 -3 modified

Full Patch

diff --git a/src/shared/tester.c b/src/shared/tester.c
index 3c3089f..30857e0 100644
--- a/src/shared/tester.c
+++ b/src/shared/tester.c
@@ -692,7 +692,7 @@ void tester_wait(unsigned int seconds, tester_wait_func_t func,
 static gboolean signal_handler(GIOChannel *channel, GIOCondition condition,
 							gpointer user_data)
 {
-	static unsigned int __terminated = 0;
+	static bool terminated = false;
 	struct signalfd_siginfo si;
 	ssize_t result;
 	int fd;
@@ -711,10 +711,10 @@ static gboolean signal_handler(GIOChannel *channel, GIOCondition condition,
 	switch (si.ssi_signo) {
 	case SIGINT:
 	case SIGTERM:
-		if (__terminated == 0)
+		if (!terminated)
 			g_main_loop_quit(main_loop);
 
-		__terminated = 1;
+		terminated = true;
 		break;
 	}