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 <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
|
||||
|
@ -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__
|
||||
|
|
Loading…
Reference in New Issue
Block a user