From mint-bounce@lists.fishpool.fi  Wed Mar 23 17:41:03 2005
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Message-ID: <42419BF0.805@utbm.fr>
Date: Wed, 23 Mar 2005 17:40:16 +0100
From: Olivier Landemarre <olivier.landemarre@utbm.fr>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Evan K. Langlois" <Evan@CoolRunningConcepts.com>
Cc: mint@fishpool.com
Subject: Re: [MiNT] Fopen() and cache
References: <200503221811.p44864@b.maus.de>	 <1111545943.11656.7.camel@taro.coolrunningconcepts.com>	 <4241312C.9080203@utbm.fr>	 <Pine.NEB.4.62.0503231005070.786@wh58-508.st.uni-magdeburg.de>	 <424132E8.7080800@utbm.fr>	 <1111592545.11656.38.camel@taro.c
In-Reply-To: <1111594293.11656.42.camel@taro.coolrunningconcepts.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: olivier.landemarre@utbm.fr
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=-0.1 tagged_above=-50.5 required=7.0 tests=AWL,
 BAYES_00
X-Spam-Level: 

Evan K. Langlois wrote:

> On Wed, 2005-03-23 at 16:57 +0100, Olivier Landemarre wrote:
>
>>In fact if I refer to the desktop, after quit the program, if I update 
>>U:\PROC\ folder I can see that the software stop and is remove (I 
>>suppose desktop use Dopendir() - Dreadir(), so list is updated 
>>correctly), but it is not true for Fopen or Fsfirst(), as I can test, 
>>it's strange no?
>>    
>>
>  
>
> This sounds like a bug that needs to be squashed then.  If 
> opendir/readdir doesn't find it, then open shouldn't either.  Even if 
> the desktop doesn't reap its children, these calls should return 
> consistent information.
>
>
I have do a new test and I confirm this small problem, here part of 
source code

if(Pkill(client->Mint_ID,0)!=0) /* to know if software is alive */
{    long idapp; char fspec[50];

    /* if here the software doesn't exist */          

    sprintf(fspec,"U:\\PROC\\%s.%03d",client->app_name,client->Mint_ID);
    idapp=Fopen(fspec,2);
    if(idapp>0L)
    {
        printf("Error %s find\n",fspec); /* should never be here but it 
is! */
        Fclose(idapp);
        Cconin();
    }
}


In this case the error message is print on screen,  it should never be 
possible because the software have already quit
Olivier


