client: no while loop in client_manager_io()
The last patch removed the "continue" directive, and now the while loop is without function. Remove it. Also make client_manager_io() return 0.
This commit is contained in:
parent
f6a7dd2b45
commit
34735fab66
12
src/client.c
12
src/client.c
@ -476,10 +476,7 @@ int client_manager_io(void)
|
|||||||
fd_set efds;
|
fd_set efds;
|
||||||
struct client *client, *n;
|
struct client *client, *n;
|
||||||
int selret;
|
int selret;
|
||||||
int fdmax;
|
int fdmax = 0;
|
||||||
|
|
||||||
while (1) {
|
|
||||||
fdmax = 0;
|
|
||||||
|
|
||||||
FD_ZERO( &efds );
|
FD_ZERO( &efds );
|
||||||
client_manager_register_read_fd(&rfds, &fdmax);
|
client_manager_register_read_fd(&rfds, &fdmax);
|
||||||
@ -493,7 +490,7 @@ int client_manager_io(void)
|
|||||||
|
|
||||||
if (selret < 0) {
|
if (selret < 0) {
|
||||||
if (errno == EINTR)
|
if (errno == EINTR)
|
||||||
break;
|
return 0;
|
||||||
|
|
||||||
FATAL("select() failed: %s\n", strerror(errno));
|
FATAL("select() failed: %s\n", strerror(errno));
|
||||||
}
|
}
|
||||||
@ -516,10 +513,7 @@ int client_manager_io(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void client_manager_init(void)
|
void client_manager_init(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user