From mint-bounce@lists.fishpool.fi  Wed Mar 23 13:58:04 2005
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Date: Wed, 23 Mar 2005 13:56:35 +0100 (CET)
From: Frank Naumann <fnaumann@boerde.de>
X-X-Sender: fnaumann@wh58-508.st.uni-magdeburg.de
To: Olivier Landemarre <olivier.landemarre@utbm.fr>
Cc: mint@fishpool.com
Subject: Re: [MiNT] Fopen() and cache
In-Reply-To: <42416616.5000809@utbm.fr>
Message-ID: <Pine.NEB.4.62.0503231354410.786@wh58-508.st.uni-magdeburg.de>
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> <Pine.NEB.4.62.0503231323180.786@wh58-
 <42416616.5000809@utbm.fr>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Scan-Signature: 7ef6d24607a96b3e0200a04696431edf
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: fnaumann@boerde.de
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.7 tagged_above=-50.5 required=7.0 tests=AWL,
 BAYES_00
X-Spam-Level: 

Hello!

>>>>> This work but if the software stop if I do an Fopen() result is still 
>>>>> >0L where it should be <=0L if not avaible
>>>>> after near 1 minute after the program stop the result  is <0L and it's 
>>>>> correct. So I suppose there is somewhere a cache avaible, how can I do 
>>>>> to solve this trouble?
>>>> 
>>> Verify software is still in live.
>> 
>> I'll suggest to use Pkill(). That is much easier.
>> 
> Ok thanks I will look at this!

Just do a Pkill(pid, 0). If the process exist you get E_OK, if the process 
don't exist you get ENOENT. This is documented too (signal 0 is not a real 
signal, just to check for the processes).


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de


