Skip to content

Commit

Permalink
wallet_rpc_server: exit cleanly on unhandled exceptions
Browse files Browse the repository at this point in the history
Coverity 161868
  • Loading branch information
moneromooo-monero committed Sep 27, 2018
1 parent 418a993 commit 1b0afee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wallet/wallet_rpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3457,6 +3457,8 @@ class t_executor final
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();
Expand Down Expand Up @@ -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);
}

0 comments on commit 1b0afee

Please sign in to comment.