From: Nishi Date: Thu, 19 Sep 2024 12:50:05 +0000 (+0000) Subject: add error reporting X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d49611a5b6f7036dbee84311b7ca5d1bd59ab89c;p=tewi.git add error reporting git-svn-id: file:///raid/svn-personal/tewi/trunk@84 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index d0b4963..b47ca38 100644 --- a/Server/server.c +++ b/Server/server.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -765,6 +766,9 @@ void tw_server_loop(void) { tv.tv_usec = 0; int ret = select(FD_SETSIZE, &fdset, NULL, NULL, &tv); if(ret == -1) { +#ifndef __MINGW32__ + cm_log("Server", "Select failure: %s", strerror(errno)); +#endif break; } else if(ret == 0) { #ifdef __MINGW32__