I am currently writing a C application for an embedded system (limited disc space) On this system, several processes access files which I have to delete with my application on certain events (e.g. running out of disc space). But since the other processes still can write to these files, the disc space situation doesn't improve.
Is there any possibility to actually delete the file and let the write access of the other processes fail?
I have only limited access to the behavior of the other processes so it would be nice if no cooperation of these processes is needed.
Two ideas come to mind to go around the fact that the file doesn't actually get deleted until all references to it are closed:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With