RE: do_select() improvement ...

From: Davide Libenzi (davidel@xmailserver.org)
Date: Thu Jun 21 2001 - 16:23:52 EST


On 21-Jun-2001 Davide Libenzi wrote:
> off = i / __NFDBITS;
> ! if (!(i & (__NFDBITS - 1))) {
> ! bits = BITS(fds, off);
> ! if (!bits) {
> ! i += __NFDBITS;
> ! continue;
> ! }

This is wrong.

> off = i / __NFDBITS;
> ! if (!(i & (__NFDBITS - 1))) {
> ! bits = BITS(fds, off);
> ! if (!bits) {
> ! i += __NFDBITS - 1;
> ! continue;
> ! }

This is right.

- Davide



End of MIME message
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 23 2001 - 21:00:35 EST