Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

flock() question



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





Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org