]> Nishi Git Mirror - tewi.git/commitdiff
fix select
authorNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 12:51:19 +0000 (12:51 +0000)
committerNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 12:51:19 +0000 (12:51 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@85 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/server.c

index b47ca3832905a09abefaed06a2e156ede916abcb..b801dd6ef5e408429dae824796b68f5319a9431e 100644 (file)
@@ -764,7 +764,7 @@ void tw_server_loop(void) {
                }
                tv.tv_sec = 1;
                tv.tv_usec = 0;
-               int ret = select(FD_SETSIZE, &fdset, NULL, NULL, &tv);
+               int ret = select(sockcount, &fdset, NULL, NULL, &tv);
                if(ret == -1) {
 #ifndef __MINGW32__
                        cm_log("Server", "Select failure: %s", strerror(errno));