wallet: disable core dumps on startup in release mode

This commit is contained in:
moneromooo-monero
2018-07-15 13:20:36 +01:00
parent eed4dba880
commit 4307489147
4 changed files with 24 additions and 0 deletions
+3
View File
@@ -51,6 +51,9 @@ bool isAddressLocal(const std::string &address)
void onStartup()
{
tools::on_startup();
#ifdef NDEBUG
tools::disable_core_dumps();
#endif
}
}
+3
View File
@@ -109,6 +109,9 @@ namespace wallet_args
std::string lang = i18n_get_language();
tools::on_startup();
#ifdef NDEBUG
tools::disable_core_dumps();
#endif
tools::set_strict_default_file_permissions(true);
epee::string_tools::set_module_name_and_folder(argv[0]);