diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-07-15 13:20:36 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-08-12 16:28:10 +0000 |
commit | 43074891479b4883645b06c4cc5341469d9cd9cd (patch) | |
tree | 64ef46421d272b30585c560fbe9807187319363f /src/wallet | |
parent | Merge pull request #4094 (diff) | |
download | monero-43074891479b4883645b06c4cc5341469d9cd9cd.tar.xz |
wallet: disable core dumps on startup in release mode
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/api/utils.cpp | 3 | ||||
-rw-r--r-- | src/wallet/wallet_args.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/api/utils.cpp b/src/wallet/api/utils.cpp index aebe41e59..86fe56564 100644 --- a/src/wallet/api/utils.cpp +++ b/src/wallet/api/utils.cpp @@ -51,6 +51,9 @@ bool isAddressLocal(const std::string &address) void onStartup() { tools::on_startup(); +#ifdef NDEBUG + tools::disable_core_dumps(); +#endif } } diff --git a/src/wallet/wallet_args.cpp b/src/wallet/wallet_args.cpp index a629eb506..95a4e0ad6 100644 --- a/src/wallet/wallet_args.cpp +++ b/src/wallet/wallet_args.cpp @@ -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]); |