+ else
+ {
+ msg (SW, _("The rest of this command has been discarded."));
+ lex_discard_line ();
+ }
+}
+
+
+
+/* If a segfault happens, issue a message to that effect and halt */
+void
+bug_handler(int sig UNUSED)
+{
+ switch (sig)
+ {
+ case SIGFPE:
+ request_bug_report_and_abort("Floating Point Exception");
+ break;
+ case SIGSEGV:
+ request_bug_report_and_abort("Segmentation Violation");
+ break;
+ default:
+ request_bug_report_and_abort("");
+ break;
+ }
+}
+
+
+void
+interrupt_handler(int sig UNUSED)
+{
+ err_hcf(0);