force exit on error.

This commit is contained in:
Christopher Jeffrey 2014-12-10 11:29:29 -08:00
parent 5d127aea6b
commit 7eba2dec57
1 changed files with 4 additions and 0 deletions

View File

@ -846,6 +846,7 @@ start_node_thread(void) {
mapArgs["-datadir"].c_str()); mapArgs["-datadir"].c_str());
} }
shutdown_complete = true; shutdown_complete = true;
_exit(1);
return; return;
} }
@ -857,6 +858,7 @@ start_node_thread(void) {
"bitcoind.js: Error reading configuration file: %s\n", e.what()); "bitcoind.js: Error reading configuration file: %s\n", e.what());
} }
shutdown_complete = true; shutdown_complete = true;
_exit(1);
return; return;
} }
@ -866,6 +868,7 @@ start_node_thread(void) {
"bitcoind.js: Invalid combination of -regtest and -testnet.\n"); "bitcoind.js: Invalid combination of -regtest and -testnet.\n");
} }
shutdown_complete = true; shutdown_complete = true;
_exit(1);
return; return;
} }
@ -875,6 +878,7 @@ start_node_thread(void) {
fprintf(stderr, "You need to rebuild the database using -reindex to change -txindex\n"); fprintf(stderr, "You need to rebuild the database using -reindex to change -txindex\n");
} }
shutdown_complete = true; shutdown_complete = true;
_exit(1);
return; return;
} }