Chris Elving writes:
> I'm seeking a sponsor for the following change to 
> /usr/src/cmd/cmd-inet/usr.bin/telnet/sys_bsd.c for telnet(1):
[...]
> +       int nfds = 0;

Since we know that tin and tout are 0 and 1 (fixed), the whole thing
can likely be reduced to just:

> -       if ((c = select(16, &ibits, &obits, &xbits,
> +       if ((c = select(net + 1, &ibits, &obits, &xbits,

But the bigger question is why this is needed.  It'd have to be some
situation in which telnet was exec'd with the first 16 descriptors
already open.  Does that happen?

Could you file a bug first?

-- 
James Carlson, KISS Network                    <james.d.carlson at sun.com>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to