mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Clean up shutdown process
This commit is contained in:
@@ -1221,13 +1221,14 @@ int CommandLineRPC(int argc, char *argv[])
|
||||
strPrint = write_string(result, true);
|
||||
}
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
catch (boost::thread_interrupted) {
|
||||
throw;
|
||||
}
|
||||
catch (std::exception& e) {
|
||||
strPrint = string("error: ") + e.what();
|
||||
nRet = 87;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
catch (...) {
|
||||
PrintException(NULL, "CommandLineRPC()");
|
||||
}
|
||||
|
||||
@@ -1265,6 +1266,9 @@ int main(int argc, char *argv[])
|
||||
return CommandLineRPC(argc, argv);
|
||||
}
|
||||
}
|
||||
catch (boost::thread_interrupted) {
|
||||
throw;
|
||||
}
|
||||
catch (std::exception& e) {
|
||||
PrintException(&e, "main()");
|
||||
} catch (...) {
|
||||
|
||||
Reference in New Issue
Block a user