Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: OPEN_MAX from sysconf



On Nov 13,  5:28pm, Peter Stephenson wrote:
} Subject: Re: OPEN_MAX from sysconf
}
} Johan Danielsson wrote:
} > A lot better, but I assume that you can raise it to an arbitrary
} > limit. The solution we are really looking for is something better than
} > having to malloc(arbitrary number).
} 
} You could have some maximum for the initial allocation for fdtable and
} get the stuff in utils.c to allocate more if it was necessary.

I don't think it's worth the effort.  In practice there's always going
to be *some* hard limit, even if it's in the thousands; a few thousand
chars allocated isn't going to make that much difference to zsh.

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern



Messages sorted by: Reverse Date, Date, Thread, Author