Would file locking here prevent file corruption?

前端 未结 0 1957
广开言路
广开言路 2020-12-15 05:56

Would the flock() function prevent file corruption in this case whilst writing the file (in case two processes happen to try and write data to the file at the same time)?

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