Removed some signal handling stuff. The Ack-program should do that.
This commit is contained in:
parent
59861f883b
commit
36adbe54a5
|
@ -3,7 +3,6 @@ static char rcsid[] = "$Header$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <signal.h>
|
|
||||||
#include <out.h>
|
#include <out.h>
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
|
|
||||||
|
@ -23,16 +22,6 @@ stop()
|
||||||
exit(exitstatus);
|
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 */
|
/* VARARGS1 */
|
||||||
fatal(format, a1, a2, a3, a4)
|
fatal(format, a1, a2, a3, a4)
|
||||||
char *format;
|
char *format;
|
||||||
|
|
|
@ -35,7 +35,6 @@ beginoutput()
|
||||||
outhead.oh_nname = NLocals + NGlobals + outhead.oh_nsect;
|
outhead.oh_nname = NLocals + NGlobals + outhead.oh_nsect;
|
||||||
outhead.oh_nchar = NLChars + NGChars;
|
outhead.oh_nchar = NLChars + NGChars;
|
||||||
}
|
}
|
||||||
trap_signals();
|
|
||||||
if (!incore)
|
if (!incore)
|
||||||
begin_write();
|
begin_write();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue