aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-08-15 17:15:49 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-08-15 17:15:49 -0500
commit1d2c08610bb9437174fa393c3f739ee6228fb4aa (patch)
tree42a301b30a2490fb6a9cc3e27aa4ee8fca52edde /src/wallet
parentMerge pull request #4130 (diff)
parentwallet: disable core dumps on startup in release mode (diff)
downloadmonero-1d2c08610bb9437174fa393c3f739ee6228fb4aa.tar.xz
Merge pull request #4136
4307489 wallet: disable core dumps on startup in release mode (moneromooo-monero)
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/api/utils.cpp3
-rw-r--r--src/wallet/wallet_args.cpp3
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]);