From: Nishi Date: Thu, 19 Sep 2024 13:07:22 +0000 (+0000) Subject: fix select X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=06b8c3427854e027f99455e64f1223947cec4365;p=tewi.git fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@89 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index 3ceef41..a395104 100644 --- a/Server/server.c +++ b/Server/server.c @@ -828,6 +828,8 @@ void tw_server_loop(void) { #else pid_t pid = fork(); if(pid == 0) { + int j; + for(j = 0; j < sockcount; j++) close_socket(sockets[j]); tw_server_pass(sock, config.ports[i] & (1ULL << 32), config.ports[i], claddr); _exit(0); } else {