Mail Archives: djgpp-workers/1999/06/01/21:34:02
> 1. Using the O_NOINHERIT bit only matters for the first 20 handles;
> handles beyond the first 20 are *never* inherited.
Since the PSP contains a pointer to the parent PSP, couldn't the startup
code expand the JFT with int 21 ah=67 and then copy over the handles
> 20. Then go back and put take out the handles with the no-inherit bit
set?
> 4. 214400 doesn't bring the inherit bit on plain DOS as well, so the
> only way to go is via the SFT; let's hope some future version of
> Windows won't break this...
More testing shows that the high byte of the device info word can't be
set with 214401. But when the no-inherit bit is set in the SFT, the child
does not inherit the handle.
Also, should _get_dev_info be modified to include the workaround for
DOS not returning the high byte of the dev info word?
And I've noticed that most if not all the files in the src/posix/termios
directory contain macro defines for the bits in the dev info word.
Wouldn't it be better to put the macro defines in <io.h> since
_get_dev_info is prototyped there? Then the many duplicates can be
removed from the termios directory.
---
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/
- Raw text -