/[pspp]/pspp/src/main.c
ViewVC logotype

Diff of /pspp/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by blp, Mon Nov 15 09:51:22 2004 UTC revision 1.15 by jmd, Thu Jan 6 12:55:44 2005 UTC
# Line 64  int Line 64  int
64  main (int argc, char **argv)  main (int argc, char **argv)
65  {  {
66    signal (SIGSEGV, bug_handler);    signal (SIGSEGV, bug_handler);
67      signal (SIGFPE, bug_handler);
68    
69    gsl_set_error_handler_off();    gsl_set_error_handler_off();
70    
# Line 185  handle_error (int code) Line 186  handle_error (int code)
186  void  void
187  bug_handler(int sig UNUSED)  bug_handler(int sig UNUSED)
188  {  {
189    request_bug_report_and_abort("Segmentation Violation");    switch (sig)
190        {
191        case SIGFPE:
192          request_bug_report_and_abort("Floating Point Exception");
193          break;
194        case SIGSEGV:
195          request_bug_report_and_abort("Segmentation Violation");
196          break;
197        default:
198          request_bug_report_and_abort("");
199          break;
200        }
201  }  }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26