fix select
git-svn-id: file:///raid/svn-personal/tewi/trunk@85 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
parent
d49611a5b6
commit
1727b8b4c3
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user