chiark / gitweb /
on SIGINT, do not exit 0
authorIan Jackson <ian@turbine>
Tue, 7 Oct 2008 21:15:48 +0000 (22:15 +0100)
committerIan Jackson <ian@turbine>
Tue, 7 Oct 2008 21:15:48 +0000 (22:15 +0100)
minimise.c

index 3335209..430517f 100644 (file)
@@ -139,7 +139,7 @@ int main(int argc, const char *const *argv) {
   for (;;) {
     if (quit_requested) {
       fprintf(stderr,"SIGINT caught.\n");
-      break;
+      exit(1);
     }
 
     GA( gsl_multimin_fminimizer_iterate(minimiser) );