www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/20/17:19:41

Message-Id: <3.0.6.32.19990220171800.00875690@pop.globalserve.net>
X-Sender: derbyshire AT pop DOT globalserve DOT net
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32)
Date: Sat, 20 Feb 1999 17:18:00 -0500
To: djgpp AT delorie DOT com
From: Paul Derbyshire <pderbysh AT usa DOT net>
Subject: Re: Does Windows 98 lose DMPI descriptors?
In-Reply-To: <Pine.GSO.3.95.990220012040.27627B-100000@holyrood.ed.ac.uk
>
References: <7ahrpv$ag0$1 AT news DOT luth DOT se>
<Pine DOT GSO DOT 3 DOT 95 DOT 990218180351 DOT 1066L-100000 AT holyrood DOT ed DOT ac DOT uk>
<7ahrpv$ag0$1 AT news DOT luth DOT se>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

At 01:26 AM 2/20/99 +0000, you wrote:
>"expr" and "true" are not internal commands on my setup, according to the
>bash command "type". Which means I was able to do over 90000 launches of
>DJGPP programs from one shell before I killed it for a reason unrelated to
>anything important. 
>
>But in case they are an imperfect test for other reasons, I've downloaded
>Andris Pavenis' program posted yesterday and will compile and try that
>soon. 

Another double-post...

Anyways, from these data I would speculate that a single program getting
descriptors and freeing them doesn't free them back to the operating system
and leaks them internally (not reusing them), but that it does free the
leaked descriptors on exit. This explains the apparent descriptor leak
inside one program but not on repeated invocations of programs over 90000
times. (I would assume there are at most 65536 descriptors available...the
designers of Windoze would probably not have envisioned ever needing more
than that many.)

-- 
   .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
-()  <  circles, and bark is not smooth, nor does lightning travel in a
   `*'  straight line."    -------------------------------------------------
        -- B. Mandelbrot  |http://surf.to/pgd.net
_____________________ ____|________     Paul Derbyshire     pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|

- Raw text -


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