[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/main.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] Changes to pspp/src/main.c |
Date: |
Thu, 06 Jan 2005 08:24:12 -0500 |
Index: pspp/src/main.c
diff -u pspp/src/main.c:1.14 pspp/src/main.c:1.15
--- pspp/src/main.c:1.14 Mon Nov 15 09:51:22 2004
+++ pspp/src/main.c Thu Jan 6 12:55:44 2005
@@ -64,6 +64,7 @@
main (int argc, char **argv)
{
signal (SIGSEGV, bug_handler);
+ signal (SIGFPE, bug_handler);
gsl_set_error_handler_off();
@@ -185,5 +186,16 @@
void
bug_handler(int sig UNUSED)
{
- request_bug_report_and_abort("Segmentation Violation");
+ 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;
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] Changes to pspp/src/main.c,
John Darrington <=