add error reporting
git-svn-id: file:///raid/svn-personal/tewi/trunk@84 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
parent
0b3068b822
commit
d49611a5b6
|
@ -21,6 +21,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
@ -765,6 +766,9 @@ void tw_server_loop(void) {
|
||||||
tv.tv_usec = 0;
|
tv.tv_usec = 0;
|
||||||
int ret = select(FD_SETSIZE, &fdset, NULL, NULL, &tv);
|
int ret = select(FD_SETSIZE, &fdset, NULL, NULL, &tv);
|
||||||
if(ret == -1) {
|
if(ret == -1) {
|
||||||
|
#ifndef __MINGW32__
|
||||||
|
cm_log("Server", "Select failure: %s", strerror(errno));
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
} else if(ret == 0) {
|
} else if(ret == 0) {
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
|
|
Loading…
Reference in New Issue
Block a user