diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-02-16 14:20:31 +0100 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-02-16 14:20:31 +0100 |
commit | 666a76652bcc82c5f85e1a658eab83b27e9e78a4 (patch) | |
tree | 7ef0770f47b0c4a691b4cbe2d9849ecbc8fa202c /external/db_drivers | |
parent | Merge pull request #3184 (diff) | |
parent | call _exit instead of abort in release mode (diff) | |
download | monero-666a76652bcc82c5f85e1a658eab83b27e9e78a4.tar.xz |
Merge pull request #3187
851bd057 call _exit instead of abort in release mode (moneromooo-monero)
Diffstat (limited to 'external/db_drivers')
-rw-r--r-- | external/db_drivers/liblmdb/mdb.c | 4 |
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) |