This commit is contained in:
elvis
2022-04-24 01:36:43 +02:00
parent 4fe23200bc
commit 9eaf9cdd49
9 changed files with 163 additions and 82 deletions

View File

@ -369,6 +369,7 @@ int main(int argc, char *argv[]) {
perror("ERROR FATAL calloc");
goto _cleanup;
}
*connfd = i;
args->connfd = connfd;
args->quit = &quit;
args->request_pipe = request_pipe[1];
@ -396,6 +397,7 @@ int main(int argc, char *argv[]) {
}
}
}
fprintf(stdout, "\n");
destroyThreadPool(pool, 0); // notifico che i thread dovranno uscire
clearWaiting(&waiting); // destroy waiting list