wallet: disable core dumps on startup in release mode
This commit is contained in:
@@ -51,6 +51,9 @@ bool isAddressLocal(const std::string &address)
|
||||
void onStartup()
|
||||
{
|
||||
tools::on_startup();
|
||||
#ifdef NDEBUG
|
||||
tools::disable_core_dumps();
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user