forked from lthn/blockchain
added check if console is available #510
This commit is contained in:
parent
87fae9440c
commit
9efce2ddb3
1 changed files with 7 additions and 3 deletions
|
|
@ -409,10 +409,14 @@ int main(int argc, char* argv[])
|
||||||
LOG_PRINT_MAGENTA("[Warp]: Warm up finished!", LOG_LEVEL_0);
|
LOG_PRINT_MAGENTA("[Warp]: Warm up finished!", LOG_LEVEL_0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// start components
|
//detect if console is available
|
||||||
if (!command_line::has_arg(vm, command_line::arg_console))
|
if (isatty(fileno(stdin)))
|
||||||
{
|
{
|
||||||
dch.start_handling();
|
// start components
|
||||||
|
if (!command_line::has_arg(vm, command_line::arg_console))
|
||||||
|
{
|
||||||
|
dch.start_handling();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t rpc_threads_count = RPC_SERVER_DEFAULT_THREADS_NUM;
|
uint32_t rpc_threads_count = RPC_SERVER_DEFAULT_THREADS_NUM;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue