[GRASS-SVN] r61803 - in grass/branches/releasebranch_7_0: . lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 5 04:52:19 PDT 2014
Author: neteler
Date: 2014-09-05 04:52:19 -0700 (Fri, 05 Sep 2014)
New Revision: 61803
Modified:
grass/branches/releasebranch_7_0/
grass/branches/releasebranch_7_0/lib/gis/error.c
Log:
libgis: Replace SIGSEGV-on-error with SIGABRT-on-error (trunk, r60289)
Property changes on: grass/branches/releasebranch_7_0
___________________________________________________________________
Modified: svn:mergeinfo
- /grass/trunk:61380,61420,61422,61480,61500,61764
+ /grass/trunk:60289,61380,61420,61422,61480,61500,61764
Modified: grass/branches/releasebranch_7_0/lib/gis/error.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/gis/error.c 2014-09-05 08:00:53 UTC (rev 61802)
+++ grass/branches/releasebranch_7_0/lib/gis/error.c 2014-09-05 11:52:19 UTC (rev 61803)
@@ -18,7 +18,6 @@
#include <unistd.h>
#include <time.h>
#include <stdarg.h>
-#include <signal.h>
#include <sys/types.h>
#include <grass/glocale.h>
#include <grass/gis.h>
@@ -176,12 +175,12 @@
G__call_error_handlers();
- /* Raise SIGSEGV, useful for debugging only.
- * Type "export GRASS_SIGSEGV_ON_ERROR=1"
+ /* Raise SIGABRT, useful for debugging only.
+ * Type "export GRASS_ABORT_ON_ERROR=1"
* to enable this feature using bash.
*/
- if (getenv("GRASS_SIGSEGV_ON_ERROR"))
- raise(SIGSEGV);
+ if (getenv("GRASS_ABORT_ON_ERROR"))
+ abort();
exit(EXIT_FAILURE);
}
More information about the grass-commit
mailing list