From d49611a5b6f7036dbee84311b7ca5d1bd59ab89c Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 19 Sep 2024 12:50:05 +0000 Subject: [PATCH] add error reporting git-svn-id: file:///raid/svn-personal/tewi/trunk@84 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/server.c | 4 ++++ 1 file changed, 4 insertions(+) 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__ -- 2.43.0