Can you unlock a file with lockf from another process?

后端 未结 0 1184
心在旅途
心在旅途 2021-01-18 01:42

If I set a lock in process A that has two child processes with :

int a = lockf(fic2, F_LOCK, 0);

can I unlock it in process B with :

相关标签:
回答
  • 消灭零回复
提交回复
热议问题