James Carlson wrote:

> 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?

Due to the 32-bit ABI's stdio file descriptor limit, an interposer is
being used to F_DUPFD non-stdio file descriptors to 256 and above. This
mitigates a problem with 3rd party modules and plugins that use
fopen(3C), et al. streams in processes such as Apache HTTP Server that
open a large number of file descriptors. Unfortunately, using the
interposer causes failures when a child process (e.g. CGI program)
subsequently invokes telnet(1). If telnet passed the correct nfds value
to select(3C), that failure would be eliminated.

> Could you file a bug first?

I submitted a bug report through
https://www.opensolaris.org/bug/report.jspa before mailing
request-sponsor at opensolaris.org, but I don't believe a corresponding CR
was opened.


Reply via email to