Commit 29c386d5 authored by Pekka Pessi's avatar Pekka Pessi

su_select_port.c: fixed off-by-one error in su_select_port_wait_events().

Removed spurious logging message.

darcs-hash:20070425081229-55b16-8974cdea0758e30114a745936f5cbbd6f4db4531.gz
parent 4d331a8f
......@@ -572,13 +572,15 @@ int su_select_port_wait_events(su_port_t *self, su_duration_t tout)
n = select(self->sup_maxfd, rset, wset, NULL, &tv);
if (n <= 0) {
if (n < 0) {
SU_DEBUG_0(("su_select_port_wait_events(%p): %s (%d)\n",
(void *)self, su_strerror(su_errno()), su_errno()));
return 0;
}
else if (n == 0)
return 0;
for (j = 1; j < self->sup_max_index; j++) {
for (j = 1; j <= self->sup_max_index; j++) {
struct su_select_register *ser;
su_root_magic_t *magic;
int fd;
......
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