pspp: Avoid printing multiple messages for a single signal caused by a bug.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 2 Oct 2010 19:01:50 +0000 (12:01 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 2 Oct 2010 19:01:50 +0000 (12:01 -0700)
When I tested commit 38f3d1b22 "pspp: Make a signal that indicates a bug
re-raise that signal to exit" I didn't read the output carefully enough.
John Darrington pointed out the problem.

src/ui/terminal/main.c

index 7d2c97f9f7a343454be3cf2343c101a781433a78..fa99fe1a4ee46ddd73417b995921f7f27ec985aa 100644 (file)
@@ -166,12 +166,16 @@ bug_handler(int sig)
     {
     case SIGABRT:
       request_bug_report("Assertion Failure/Abort");
+      break;
     case SIGFPE:
       request_bug_report("Floating Point Exception");
+      break;
     case SIGSEGV:
       request_bug_report("Segmentation Violation");
+      break;
     default:
       request_bug_report("Unknown");
+      break;
     }
 
   /* Re-raise the signal so that we terminate with the correct status. */