|
|
@ -724,8 +724,12 @@ void stats_rpcloop(void *args) |
|
|
|
arg64 = ((uint64_t)ipbits << 32) | (sock & 0xffffffff); |
|
|
|
arg64ptr = malloc(sizeof(arg64)); |
|
|
|
memcpy(arg64ptr,&arg64,sizeof(arg64)); |
|
|
|
//LP_rpc_processreq((void *)&arg64);
|
|
|
|
if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_rpc_processreq,arg64ptr) != 0 ) |
|
|
|
if ( 1 ) |
|
|
|
{ |
|
|
|
LP_rpc_processreq((void *)&arg64); |
|
|
|
free(arg64ptr); |
|
|
|
} |
|
|
|
else if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_rpc_processreq,arg64ptr) != 0 ) |
|
|
|
{ |
|
|
|
printf("error launching rpc handler on port %d\n",port); |
|
|
|
} |
|
|
|