mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 09:58:52 +00:00
wallet_rpc_server: exit cleanly on unhandled exceptions
Coverity 161868
This commit is contained in:
parent
418a993618
commit
1b0afeeb1c
@ -3457,6 +3457,8 @@ public:
|
|||||||
std::string const t_executor::NAME = "Wallet RPC Daemon";
|
std::string const t_executor::NAME = "Wallet RPC Daemon";
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
TRY_ENTRY();
|
||||||
|
|
||||||
namespace po = boost::program_options;
|
namespace po = boost::program_options;
|
||||||
|
|
||||||
const auto arg_wallet_file = wallet_args::arg_wallet_file();
|
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;
|
return daemonizer::daemonize(argc, const_cast<const char**>(argv), t_executor{}, *vm) ? 0 : 1;
|
||||||
|
CATCH_ENTRY_L0("main", 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user