public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59861f8
)
Removed some signal handling stuff. The Ack-program should do that.
author
ceriel
<none@none>
Mon, 1 Dec 1986 09:43:00 +0000
(09:43 +0000)
committer
ceriel
<none@none>
Mon, 1 Dec 1986 09:43:00 +0000
(09:43 +0000)
util/led/error.c
patch
|
blob
|
history
util/led/output.c
patch
|
blob
|
history
diff --git
a/util/led/error.c
b/util/led/error.c
index
358cd9c
..
52da2a7
100644
(file)
--- a/
util/led/error.c
+++ b/
util/led/error.c
@@
-3,7
+3,6
@@
static char rcsid[] = "$Header$";
#endif
#include <stdio.h>
-#include <signal.h>
#include <out.h>
#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
74b5b88
..
2c059a1
100644
(file)
--- 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();
}