TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jonathan de Boyne Pollard
from: Paul Edwards
date: 1996-11-11 22:37:40
subject: C600bug.Txt

> One other thing to note, is that if you go into cvp (Codeview),
 > and do a file, OS-shell, it somehow manages to clear the device
 > drivers out of all the low-numbered file handles, which means
 > that you don't need to patch anything, you simply run cvp as
 > your main shell!  I don't know why this does that, or more
 > importantly, how to write a program a lot smaller than cvp, that
 > both increases the number of file handles AND clears the low
 > numbered file handles.  If anyone knows how to do the latter,
 > could you please contact Paul Edwards at 3:711/934{at}fidonet.

JdBP> Oh come on, Paul.  That's obvious.  Just use DosSetRelMaxFH to find the
JdBP> size of the per-process file table, N, and loop from 3 to N closing all
JdBP> open file handles.  You can expand the table at the same time.

That's a rather strange and brave thing for cvp to be doing.  Do you
seriously think that they're doing that, and if so, why?  I would have
thought that device drivers were validly using those file handles.

BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.