I am facing a problem with file locking.
I have process A & process B, writing & reading a plain text data file
respectively. I can implement exclusive lock using fcntl() so that when A is
in the process of writing the file, B should not read at that instance.
However, I noticed that even if process A has got an exclusive lock on the
file, I can open the file manually (say vi) and modify the file.
I tried searching on the net and found an article at
which says Unix/linux has this problem.
Can someone help me plz?
thanks a lot.
In a world without fences and walls, who needs windows and gates?