The following places a read lock over cf.buffer
Now here' s what I'm mystified by. I run this and then i fire up the Vi(m) editor. The editor warns me that the file is read only and then refuses to let me modify the file. But when I dot he same thing with Pico, I get no warning and the Pico editor will not only let me write to cf.buffer but also save the changes.Code:
% lockf "/home/nh/cf.buffer" sleep 10000 &
Why is this?