Commit 34735fab authored by Max Kellermann's avatar Max Kellermann

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.
parent f6a7dd2b
...@@ -476,10 +476,7 @@ int client_manager_io(void) ...@@ -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) ...@@ -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) ...@@ -516,10 +513,7 @@ int client_manager_io(void)
} }
} }
break; return 0;
}
return 1;
} }
void client_manager_init(void) void client_manager_init(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment