Diff between 83f34df7f8c95afb900494611edecfdf78858cf9 and 9fb60a2933e1721931d69dd1ac43de0d60c3acf2

Changed Files

File Additions Deletions Status
client/main.c +3 -3 modified

Full Patch

diff --git a/client/main.c b/client/main.c
index 4360930..bb67f3d 100644
--- a/client/main.c
+++ b/client/main.c
@@ -1658,7 +1658,7 @@ static guint setup_standard_input(void)
 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;
@@ -1691,13 +1691,13 @@ static gboolean signal_handler(GIOChannel *channel, GIOCondition condition,
 		 * exit and fall through.
 		 */
 	case SIGTERM:
-		if (__terminated == 0) {
+		if (!terminated) {
 			rl_replace_line("", 0);
 			rl_crlf();
 			g_main_loop_quit(main_loop);
 		}
 
-		__terminated = 1;
+		terminated = true;
 		break;
 	}