Revision: 76867
          http://sourceforge.net/p/brlcad/code/76867
Author:   starseeker
Date:     2020-08-21 14:55:20 +0000 (Fri, 21 Aug 2020)
Log Message:
-----------
bu_exit doesn't seem to succeed here - BU_SETJMP is set somehow, and bu_bomb is 
called by bu_exit.  Just log the message and return, until it's clearer what's 
going on.

Modified Paths:
--------------
    brlcad/trunk/src/sig/dauto.c

Modified: brlcad/trunk/src/sig/dauto.c
===================================================================
--- brlcad/trunk/src/sig/dauto.c        2020-08-21 14:27:34 UTC (rev 76866)
+++ brlcad/trunk/src/sig/dauto.c        2020-08-21 14:55:20 UTC (rev 76867)
@@ -35,6 +35,7 @@
 #include "bio.h"
 
 #include "bu/app.h"
+#include "bu/log.h"
 #include "bu/malloc.h"
 #include "bu/exit.h"
 
@@ -44,7 +45,7 @@
 {
     static const char usage[] = "Usage: dauto [window_size (512)] < doubles 
>outputfile\n";
 
-    double *data;                      /* Input buffer */
+    double *data;              /* Input buffer */
     double *r;                 /* autocor output */
     double *weight;            /* weights to unbias estimation */
 
@@ -55,7 +56,10 @@
     bu_setprogname(argv[0]);
 
     if (isatty(fileno(stdin)) || isatty(fileno(stdout))) {
-       bu_exit(1, "%s", usage);
+       //TODO - bu_exit is bombing here - why?
+       //bu_exit(1, "%s", usage);
+       bu_log("%s", usage);
+       return 1;
     }
 
     L = (argc > 1) ? atoi(argv[1]) : 512;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to