Mail Archives: djgpp-workers/1997/09/10/21:08:09
> Another alternative would be to let libc allocate handles without the
> inherit bit, or to have it only set the inherit bit for the first 16 or
> so handles. I doubt that any program relies on inheriting a large number
> of handles from its parent, so this should not break anything, although
> such a risk exists.
I prefer this, as I'd like to leave open the option for resizing the
stub after the program is loaded, either smaller when using a shared
TB or larger when more env/arg space is needed. Resizing the file
handle table too early would mess this up.
Another option I'd agree with is expanding the file handle table if
and only if the open call fails because of that.
- Raw text -