/*
* process_all_clients():
- * Processes all the control connections in active_clients
+ * Processes all the _control_ connections in active_clients
* (normally returned from a select(), there are at max
* NUM_AC active connections in the set), sending them
* through to the command parser if a command has been
c = next;
next = c->next_conn;
#if HAVE_POLL
- if (!fds[c->sock].revents & (POLLIN|POLLERR|POLLHUP|POLLNVAL)) {
+ if ((fds[c->sock].revents & (POLLIN|POLLERR|POLLHUP|POLLNVAL)) == 0) {
continue;
}
#else
if (fds[c->sock].revents & (POLLERR|POLLHUP|POLLNVAL)) {
destroy_conn(c);
- continue;
}
}
return checked_through;