From 6cb6634c3498101bb28291dec1dbac7135f732d9 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 18 Mar 2016 22:40:12 +0100 Subject: [PATCH] gui.c: Remove silly warning on SIGINT. Sending SIGINT to para_gui has no effect, yet we print a strange "reset" warning in this case. This patch removes the warning and the outdated comment which referred to do_select(), a function which was removed long ago. Note that (a) we still catch SIGINT, and (b) hitting CTRL+C still causes the status task to respawn the stat process because CTRL+C sends SIGINT to the foreground process group, which includes the stat process. --- gui.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gui.c b/gui.c index 83337f86..dd7ffeb4 100644 --- a/gui.c +++ b/gui.c @@ -937,10 +937,6 @@ static int signal_post_select(struct sched *s, __a_unused void *context) die(EXIT_FAILURE, "only the good die young (caught SIGTERM)\n"); return 1; case SIGINT: - PARA_WARNING_LOG("caught SIGINT, reset\n"); - /* Nothing to do. SIGINT killed our child which gets noticed - * by do_select and resets everything. - */ return 1; case SIGUSR1: PARA_NOTICE_LOG("got SIGUSR1, rereading configuration\n"); -- 2.39.5