[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Fopen() and cache



Frank Naumann wrote:

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).


Thanks, it work fine

Olivier