mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
wallet_rpc_server: exit cleanly on unhandled exceptions
Coverity 161868
This commit is contained in:
parent
418a993618
commit
1b0afeeb1c
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue