changeset 1135:2daceccf7392

misc: remove use of SIGUSR1
author David Demelier <markand@malikania.fr>
date Thu, 09 Dec 2021 14:24:54 +0100
parents e16b0e3a137c
children f06e9761cc90
files irccd/main.c tests/test-jsapi-timer.c tests/test-plugin-tictactoe.c
diffstat 3 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/irccd/main.c	Thu Dec 09 14:13:46 2021 +0100
+++ b/irccd/main.c	Thu Dec 09 14:24:54 2021 +0100
@@ -174,12 +174,6 @@
 }
 
 static void
-nada(int signum)
-{
-	(void)signum;
-}
-
-static void
 init(void)
 {
 	struct sigaction sig;
@@ -192,12 +186,6 @@
 #endif
 
 	sigemptyset(&sig.sa_mask);
-	sig.sa_handler = nada;
-
-	/* Generated from threads. */
-	if (sigaction(SIGUSR1, &sig, NULL) < 0)
-		irc_util_die("sigaction: %s\n", strerror(errno));
-
 	sig.sa_handler = stop;
 	sig.sa_flags = SA_RESTART;
 
--- a/tests/test-jsapi-timer.c	Thu Dec 09 14:13:46 2021 +0100
+++ b/tests/test-jsapi-timer.c	Thu Dec 09 14:24:54 2021 +0100
@@ -112,13 +112,6 @@
 int
 main(int argc, char **argv)
 {
-	struct sigaction sa;
-
-	sigemptyset(&sa.sa_mask);
-	sa.sa_flags = 0;
-	sa.sa_handler = SIG_IGN;
-	sigaction(SIGUSR1, &sa, NULL);
-
 	irc_bot_init();
 
 	GREATEST_MAIN_BEGIN();
--- a/tests/test-plugin-tictactoe.c	Thu Dec 09 14:13:46 2021 +0100
+++ b/tests/test-plugin-tictactoe.c	Thu Dec 09 14:24:54 2021 +0100
@@ -327,13 +327,6 @@
 int
 main(int argc, char **argv)
 {
-	struct sigaction sa;
-
-	sigemptyset(&sa.sa_mask);
-	sa.sa_flags = 0;
-	sa.sa_handler = SIG_IGN;
-	sigaction(SIGUSR1, &sa, NULL);
-
 	GREATEST_MAIN_BEGIN();
 	GREATEST_RUN_SUITE(suite_basics);
 	GREATEST_MAIN_END();