Deleting a possibly locked file in c
Posted
by Moev4
on Stack Overflow
See other posts from Stack Overflow
or by Moev4
Published on 2010-05-05T15:49:14Z
Indexed on
2010/05/05
17:38 UTC
Read the original article
Hit count: 345
I am using fcntl locks in C on linux and have a dilemma of trying to delete a file that may possibly be locked from other processes that also check for the fcntl locking mechanism. What would be the preferred way of handling this file which must be deleted, (Should I simply delete the file w/o regard of other processes that may have reader locks or is there a better way)? Any help would be much appreciated.
© Stack Overflow or respective owner