better warning solution;. fix nScriptCheckThreads.
This commit is contained in:
parent
4523d857c1
commit
0cc34f5420
@ -140,7 +140,7 @@ NAN_METHOD(StartBitcoind) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Run on a separate thead:
|
// Run on a separate thead:
|
||||||
// int log_fd = parse_logs(NULL);
|
int log_fd = parse_logs(NULL);
|
||||||
// handle->Set(NanNew<String>("log"), NanNew<Number>(log_fd));
|
// handle->Set(NanNew<String>("log"), NanNew<Number>(log_fd));
|
||||||
|
|
||||||
Local<Function> callback = Local<Function>::Cast(args[0]);
|
Local<Function> callback = Local<Function>::Cast(args[0]);
|
||||||
@ -232,7 +232,7 @@ async_after(uv_work_t *req) {
|
|||||||
* the logging and argument parsing.
|
* the logging and argument parsing.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const int nScriptCheckThreads = 0;
|
const int _nScriptCheckThreads = 0;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
start_node(void) {
|
start_node(void) {
|
||||||
@ -241,7 +241,7 @@ start_node(void) {
|
|||||||
detectShutdownThread = new boost::thread(
|
detectShutdownThread = new boost::thread(
|
||||||
boost::bind(&DetectShutdownThread, &threadGroup));
|
boost::bind(&DetectShutdownThread, &threadGroup));
|
||||||
|
|
||||||
for (int i = 0; i < nScriptCheckThreads - 1; i++) {
|
for (int i = 0; i < _nScriptCheckThreads - 1; i++) {
|
||||||
threadGroup.create_thread(&ThreadScriptCheck);
|
threadGroup.create_thread(&ThreadScriptCheck);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,7 +284,9 @@ const char bitcoind_char[256] = {
|
|||||||
|
|
||||||
static unsigned int
|
static unsigned int
|
||||||
parse_logs(char **log_str) {
|
parse_logs(char **log_str) {
|
||||||
goto disabled;
|
#ifndef PARSE_LOGS_ENABLED
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
int pfd[2];
|
int pfd[2];
|
||||||
pipe(pfd);
|
pipe(pfd);
|
||||||
@ -379,9 +381,6 @@ parse_logs(char **log_str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return read_log;
|
return read_log;
|
||||||
|
|
||||||
disabled:
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user