Hello, In order to exit from the server cleaning the way, may be doing this change in the line 1700: ``` while (1) { ``` change to ``` int nev = 0; while (1) { if (nev != -1) break; [delete int from the next line] ``` To quit the loop only it is needed: ``` int res = epoll_ctl (server->loop, EPOLL_CTL_DEL, 1, NULL); close (server->loop); ``` It can be more stylished but works.
Activity
Yasha-ops commentedon Dec 3, 2023
How do you handle memory leaks after the close ?