wallet_rpc_server: exit cleanly on unhandled exceptions

Coverity 161868
This commit is contained in:
moneromooo-monero 2018-09-27 15:37:44 +00:00
parent 418a993618
commit 1b0afeeb1c
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 3 additions and 0 deletions

View File

@ -3457,6 +3457,8 @@ public:
std::string const t_executor::NAME = "Wallet RPC Daemon";
int main(int argc, char** argv) {
TRY_ENTRY();
namespace po = boost::program_options;
const auto arg_wallet_file = wallet_args::arg_wallet_file();
@ -3500,4 +3502,5 @@ int main(int argc, char** argv) {
}
return daemonizer::daemonize(argc, const_cast<const char**>(argv), t_executor{}, *vm) ? 0 : 1;
CATCH_ENTRY_L0("main", 1);
}