pspp-cvs
[Top][All Lists]
Advanced

[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: Wed, 30 Mar 2005 06:54:17 -0500

Index: pspp/src/main.c
diff -u pspp/src/main.c:1.15 pspp/src/main.c:1.16
--- pspp/src/main.c:1.15        Thu Jan  6 12:55:44 2005
+++ pspp/src/main.c     Thu Jan 13 13:02:26 2005
@@ -54,17 +54,26 @@
 /* If a segfault happens, issue a message to that effect and halt */
 void bug_handler(int sig);
 
+/* Handle quit/term/int signals */
+void interrupt_handler(int sig);
+
 /* Whether we're dropping down to interactive mode immediately because
    we hit end-of-file unexpectedly (or whatever). */
 int start_interactive;
 
 
+
+
+
+
 /* Program entry point. */
 int
 main (int argc, char **argv)
 {
+
   signal (SIGSEGV, bug_handler);
-  signal (SIGFPE, bug_handler);
+  signal (SIGFPE,  bug_handler);
+  signal (SIGINT,  interrupt_handler);
 
   gsl_set_error_handler_off();
 
@@ -199,3 +208,10 @@
       break;
     }
 }
+
+
+void 
+interrupt_handler(int sig UNUSED)
+{
+  err_hcf(0);
+}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]