|
@ -1357,7 +1357,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu |
|
|
printf("got %s, initpeers. LP_mypubsock.%d pullsock.%d RPC_port.%u mypullport.%d mypubport.%d pushaddr.%s\n",myipaddr,LP_mypubsock,LP_mypullsock,RPC_port,mypullport,mypubport,pushaddr); |
|
|
printf("got %s, initpeers. LP_mypubsock.%d pullsock.%d RPC_port.%u mypullport.%d mypubport.%d pushaddr.%s\n",myipaddr,LP_mypubsock,LP_mypullsock,RPC_port,mypullport,mypubport,pushaddr); |
|
|
LP_passphrase_init(passphrase,jstr(argjson,"gui"),juint(argjson,"netid"),jstr(argjson,"seednode")); |
|
|
LP_passphrase_init(passphrase,jstr(argjson,"gui"),juint(argjson,"netid"),jstr(argjson,"seednode")); |
|
|
#ifndef FROM_JS |
|
|
#ifndef FROM_JS |
|
|
if ( 0 && OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_psockloop,(void *)myipaddr) != 0 ) |
|
|
if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_psockloop,(void *)myipaddr) != 0 ) |
|
|
{ |
|
|
{ |
|
|
printf("error launching LP_psockloop for (%s)\n",myipaddr); |
|
|
printf("error launching LP_psockloop for (%s)\n",myipaddr); |
|
|
exit(-1); |
|
|
exit(-1); |
|
@ -1372,7 +1372,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu |
|
|
printf("error launching stats rpcloop for port.%u\n",myport); |
|
|
printf("error launching stats rpcloop for port.%u\n",myport); |
|
|
exit(-1); |
|
|
exit(-1); |
|
|
} |
|
|
} |
|
|
if ( 0 && OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)command_rpcloop,ctx) != 0 ) |
|
|
if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)command_rpcloop,ctx) != 0 ) |
|
|
{ |
|
|
{ |
|
|
printf("error launching command_rpcloop for ctx.%p\n",ctx); |
|
|
printf("error launching command_rpcloop for ctx.%p\n",ctx); |
|
|
exit(-1); |
|
|
exit(-1); |
|
@ -1382,7 +1382,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu |
|
|
printf("error launching queue_loop for ctx.%p\n",ctx); |
|
|
printf("error launching queue_loop for ctx.%p\n",ctx); |
|
|
exit(-1); |
|
|
exit(-1); |
|
|
} |
|
|
} |
|
|
if ( 0 && OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)gc_loop,ctx) != 0 ) |
|
|
if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)gc_loop,ctx) != 0 ) |
|
|
{ |
|
|
{ |
|
|
printf("error launching gc_loop for port.%p\n",ctx); |
|
|
printf("error launching gc_loop for port.%p\n",ctx); |
|
|
exit(-1); |
|
|
exit(-1); |
|
|