flock() question

David Kramer david at thekramers.net
Thu Apr 18 11:39:25 EDT 2002


If I use the UNIX call flock() to lock a file, then someone tries to 
append to that file like
	ps >> myfile
or
	ps > myfile

Will the OS and shell respect the lock and block the write?

---
DDDD   David Kramer                           http://thekramers.net
DK KD  
DKK D  So if you want to build a Nerf world with no sharp edges,
DK KD  do it in Peoria.  I'm gonna go play with knives and
DDDD   flirt with redheads.                           Bob MacDowell




More information about the Discuss mailing list