Use overloadable poll

This commit is contained in:
z3APA3A 2018-05-05 20:07:59 +03:00
parent d8b5900be6
commit 92b3dd8638

View File

@ -24,7 +24,7 @@ void * threadfunc (void *p) {
fds.events = POLLIN; fds.events = POLLIN;
fds.revents = 0; fds.revents = 0;
for(i=5+(param->srv->maxchild>>10); i; i--){ for(i=5+(param->srv->maxchild>>10); i; i--){
if(poll(&fds, 1, 1000*CONNBACK_TO)!=1){ if(so._poll(&fds, 1, 1000*CONNBACK_TO)!=1){
param->srv->logfunc(param, (unsigned char *)"Connect back not received, check connback client"); param->srv->logfunc(param, (unsigned char *)"Connect back not received, check connback client");
i = 0; i = 0;
break; break;