delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/09/10:34:50

Date: Thu, 9 Sep 1999 09:21:32 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Dave Scott <dave AT roborat DOT demon DOT co DOT uk>
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: <Pine.SUN.3.91.990909092116.6646K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019