From 43074891479b4883645b06c4cc5341469d9cd9cd Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 15 Jul 2018 13:20:36 +0100 Subject: wallet: disable core dumps on startup in release mode --- src/wallet/api/utils.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wallet/api/utils.cpp') 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 } } -- cgit v1.2.3