阅读背景:

删除c中可能被锁定的文件

来源:互联网 

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 without regard of other processes that may have reader locks or is there a better way)? Any help would be much appreciated. on linux and have a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: