[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: irc 2.11.0 fdopen bug
On Mon, Feb 14, 2005 at 02:01:43PM +0100, Piotr KUCHARSKI wrote:
> On Sun, Feb 13, 2005 at 09:16:34PM -0800, Chris Behrens wrote:
> > Your patch will not work, either. The limitiation is in Solaris's use of
> > a 'char' for 'fd' in the FILE struct. That means even fopen() cannot be
> > used when fds 0-255 are already in use.
>
> Now that's a nightmare.
Indeed that is a big mistake of Sun's. :)
>
> > The quickest kludge is to do something like this, instead:
>
> Unfortunately it is not enough. config_read() calls fopen() recursively
> on each '#include filename' directive.
Ah, yep. Bummer.
- Chris