aboutsummaryrefslogtreecommitdiff
path: root/external/db_drivers
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-01-26 10:35:13 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-01 13:32:46 +0000
commit851bd057ecfa2997252429f86362b0a710a1af8d (patch)
treeee07556385050124c85bcc76fea1cb1b81da65c5 /external/db_drivers
parentMerge pull request #3130 (diff)
downloadmonero-851bd057ecfa2997252429f86362b0a710a1af8d.tar.xz
call _exit instead of abort in release mode
Avoids cores being created, as they're nowadays often piped to some call home system
Diffstat (limited to 'external/db_drivers')
-rw-r--r--external/db_drivers/liblmdb/mdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/external/db_drivers/liblmdb/mdb.c b/external/db_drivers/liblmdb/mdb.c
index 87b244ce7..bb0420453 100644
--- a/external/db_drivers/liblmdb/mdb.c
+++ b/external/db_drivers/liblmdb/mdb.c
@@ -1635,7 +1635,11 @@ mdb_assert_fail(MDB_env *env, const char *expr_txt,
if (env->me_assert_func)
env->me_assert_func(env, buf);
fprintf(stderr, "%s\n", buf);
+#ifdef NDEBUG
+ _exit();
+#else
abort();
+#endif
}
#else
# define mdb_assert0(env, expr, expr_txt) ((void) 0)