Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2011 06:43:05 +1000
From:      Peter Jeremy <peterjeremy@acm.org>
To:        "Christoph P.U. Kukulies" <kuku@kukulies.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: invalid argument in select() when peer socket is in FD_SET
Message-ID:  <20110802204304.GA78870@server.vk2pj.dyndns.org>
In-Reply-To: <4E356498.40001@kukulies.org>
References:  <4E356498.40001@kukulies.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--5vNYLRcllDrimb99
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2011-Jul-31 16:20:08 +0200, "Christoph P.U. Kukulies" <kuku@kukulies.org=
> wrote:
>             if (array_of_fds[i]) {
>                 nfds =3D max(nfds, array_of_fds[i]) + 1;

I suspect you mean: nfds =3D max(nfds, array_of_fds[i] + 1);

>                 FD_SET(array_of_fds[i], &readfds);
>             }

--=20
Peter Jeremy

--5vNYLRcllDrimb99
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iEYEARECAAYFAk44YVgACgkQ/opHv/APuIeSSQCfaFbMJ00cnPB0zfRigo1pF9Sv
aJMAn0F+4zy5BeQ+v0Umji1iCz0B/ony
=HJUz
-----END PGP SIGNATURE-----

--5vNYLRcllDrimb99--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110802204304.GA78870>