invalid argument in select() when peer socket is in FD_SET
Peter Jeremy
peterjeremy at acm.org
Tue Aug 2 20:43:11 UTC 2011
On 2011-Jul-31 16:20:08 +0200, "Christoph P.U. Kukulies" <kuku at kukulies.org> wrote:
> if (array_of_fds[i]) {
> nfds = max(nfds, array_of_fds[i]) + 1;
I suspect you mean: nfds = max(nfds, array_of_fds[i] + 1);
> FD_SET(array_of_fds[i], &readfds);
> }
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110802/0ba8db85/attachment.pgp
More information about the freebsd-hackers
mailing list