call _exit instead of abort in release mode

Avoids cores being created, as they're nowadays often piped
to some call home system
This commit is contained in:
moneromooo-monero 2018-01-26 10:35:13 +00:00
parent 09d19c9139
commit 851bd057ec
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
6 changed files with 49 additions and 7 deletions

View file

@ -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)