vendredi 31 juillet 2020

Hello, does anybody know how to remove a file and it do not lead to race condition?

I try to remove a file and recreate it if it is corrupted. I used remove() and unlink(), but both might lead to race conditions.(I found it while I run static analyzes) Does anybody know an alternative? Thanks in advantages.

Aucun commentaire:

Enregistrer un commentaire