Date: Thu, 9 Sep 1999 09:21:32 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Dave Scott cc: djgpp AT delorie DOT com Subject: Re: Bug: file left open in _check_v2_prog() In-Reply-To: <19990908.2027.13831snz@roborat.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 8 Sep 1999, Dave Scott wrote: > This came to light when using the 'system()' or 'spawn*()' functions > to repeatedly invoke a *non-DJGPP* compiled program - i.e. a "standard" > DOS .exe type. > > e.g. Something like :- > while (ch != 27) // loop until escape pressed > { > system("qedit file.txt"); // invoke an editor on text file > ch = getch() > ... etc. > > After a certain number of times through the loop, the child sub process > finds it has no free file handles, and hence cannot open the given file. Thanks for the report. This is indeed a bug; it is already corrected in the DJGPP development sources and will be fixed in v2.03. If you need the fixed version now, you can get it via the anonymous CVS access to the DJGPP sources; see http://www.delorie.com/djgpp/ for details.