client: renamed local variable "selret" to "ret"
It's easier to reuse the variable if it has a more generic name.
This commit is contained in:
parent
a49b1d145e
commit
a580f5fe68
@ -506,7 +506,7 @@ int client_manager_io(void)
|
|||||||
fd_set wfds;
|
fd_set wfds;
|
||||||
fd_set efds;
|
fd_set efds;
|
||||||
struct client *client, *n;
|
struct client *client, *n;
|
||||||
int selret;
|
int ret;
|
||||||
int fdmax = 0;
|
int fdmax = 0;
|
||||||
|
|
||||||
FD_ZERO( &efds );
|
FD_ZERO( &efds );
|
||||||
@ -516,17 +516,17 @@ int client_manager_io(void)
|
|||||||
registered_IO_add_fds(&fdmax, &rfds, &wfds, &efds);
|
registered_IO_add_fds(&fdmax, &rfds, &wfds, &efds);
|
||||||
|
|
||||||
main_notify_lock();
|
main_notify_lock();
|
||||||
selret = select(fdmax + 1, &rfds, &wfds, &efds, NULL);
|
ret = select(fdmax + 1, &rfds, &wfds, &efds, NULL);
|
||||||
main_notify_unlock();
|
main_notify_unlock();
|
||||||
|
|
||||||
if (selret < 0) {
|
if (ret < 0) {
|
||||||
if (errno == EINTR)
|
if (errno == EINTR)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
FATAL("select() failed: %s\n", strerror(errno));
|
FATAL("select() failed: %s\n", strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
registered_IO_consume_fds(&selret, &rfds, &wfds, &efds);
|
registered_IO_consume_fds(&ret, &rfds, &wfds, &efds);
|
||||||
|
|
||||||
getConnections(&rfds);
|
getConnections(&rfds);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user