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)
fd_set efds;
struct client *client, *n;
int selret;
int fdmax;
while (1) {
fdmax = 0;
int fdmax = 0;
FD_ZERO( &efds );
client_manager_register_read_fd(&rfds, &fdmax);
......@@ -493,7 +490,7 @@ int client_manager_io(void)
if (selret < 0) {
if (errno == EINTR)
break;
return 0;
FATAL("select() failed: %s\n", strerror(errno));
}
......@@ -516,10 +513,7 @@ int client_manager_io(void)
}
}
break;
}
return 1;
return 0;
}
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