1 /* Set up the signal behavior. */
14 extern void sig_die (char *, int);
20 sig_die ("Floating Exception", 1);
28 sig_die ("IOT Trap", 1);
36 sig_die ("Quit signal", 1);
45 sig_die ("Interrupt", 0);
52 sig_die ("Killed", 0);
60 sig_die ("Trace trap", 1);
68 signal1 (SIGFPE
, sigfdie
); /* ignore underflow, enable overflow */
70 signal1 (SIGIOT
, sigidie
);
73 signal1 (SIGTRAP
, sigtrdie
);
76 if (signal1 (SIGQUIT
, sigqdie
) == SIG_IGN
)
77 signal1 (SIGQUIT
, SIG_IGN
);
79 if (signal1 (SIGINT
, sigindie
) == SIG_IGN
)
80 signal1 (SIGINT
, SIG_IGN
);
81 signal1 (SIGTERM
, sigtdie
);
84 ldfps (01200); /* detect overflow as an exception */