From 06b8c3427854e027f99455e64f1223947cec4365 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 19 Sep 2024 13:07:22 +0000 Subject: [PATCH] fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@89 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/server.c | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.43.0