From 36adbe54a5f81e34cd030b37148055fafd6b3684 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 1 Dec 1986 09:43:00 +0000 Subject: [PATCH] Removed some signal handling stuff. The Ack-program should do that. --- util/led/error.c | 11 ----------- util/led/output.c | 1 - 2 files changed, 12 deletions(-) diff --git a/util/led/error.c b/util/led/error.c index 358cd9cda..52da2a724 100644 --- a/util/led/error.c +++ b/util/led/error.c @@ -3,7 +3,6 @@ static char rcsid[] = "$Header$"; #endif #include -#include #include #include "const.h" @@ -23,16 +22,6 @@ stop() exit(exitstatus); } -trap_signals() -{ - static int trap_them[] = { SIGHUP, SIGINT, SIGQUIT, SIGTERM, 0 }; - register int *ip; - - for (ip = trap_them; *ip; ip++) - if (signal(*ip, stop) == SIG_IGN) - signal(*ip, SIG_IGN); /* Oops, reset. */ -} - /* VARARGS1 */ fatal(format, a1, a2, a3, a4) char *format; diff --git a/util/led/output.c b/util/led/output.c index 74b5b88a9..2c059a1f2 100644 --- a/util/led/output.c +++ b/util/led/output.c @@ -35,7 +35,6 @@ beginoutput() outhead.oh_nname = NLocals + NGlobals + outhead.oh_nsect; outhead.oh_nchar = NLChars + NGChars; } - trap_signals(); if (!incore) begin_write(); } -- 2.34.1