From 44fc125b1a799990f9e94879fc64ab66d26b4ed2 Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 16 Jul 2022 23:52:41 +0200 Subject: [PATCH] Remove signals. --- mach/proto/as/comm4.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mach/proto/as/comm4.c b/mach/proto/as/comm4.c index 4abf13dbb..f2479f710 100644 --- a/mach/proto/as/comm4.c +++ b/mach/proto/as/comm4.c @@ -44,9 +44,6 @@ main(int argc, char **argv) { char *p; int i; - static char sigs[] = { - SIGHUP, SIGINT, SIGQUIT, SIGTERM, 0 - }; /* the next test should be performed by the * preprocessor, but it cannot, so it is performed by the compiler. @@ -58,9 +55,8 @@ main(int argc, char **argv) } progname = *argv++; argc--; - for (p = sigs; (i = *p++) != 0; ) - if (signal(i, SIG_IGN) != SIG_IGN) - signal(i, stop_on_signal); + if (signal(SIGINT, SIG_IGN) != SIG_IGN) + signal(SIGINT, stop_on_signal); for (i = 0; i < argc; i++) { p = argv[i]; if (*p++ != '-')