Mail Archives: djgpp-workers/1997/06/15/16:15:56
> On the related issue, I would like to suggest a possibility to add code
> to the stub that will allow it to open the .exe file and read the COFF
> info even if the first 20 handles are all taken (because the parent
> program has used them and passed them to the child). Probably the
> easiest way would be to make the stub call the DOS function that enlarges
> the handle table (Int 21h/AH=67h) right from the start.
Right from the start would be too early, since this function allocates DOS
memory for the handle table (around 1020 bytes) which would cause problems
in making the transfer buffer the right size, etc. After the initial
resize request, this would be OK if we want to live with each DJGPP program
always using an additional 1K DOS memory. Some code in libc which handles
the 20 handle transition could be removed.
The other alternative would be to add a feature to let the libc allocate
handles without the inherit bit, or to have it only set the inherit bit
for handles in the first 16 or so.
- Raw text -