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 |
I'm not 100% sure of this in Linux, but flock(2) is an advisory lock, so that anyone can modify the file regardless of the lock state. I strongly recommend that you use fcntl(2) as your lock mechanism as it is= semanticly and syntacticly standard across platforms. It locks across NFS.= You can also lock a portion of a file. On 18 Apr 2002 at 11:39, David Kramer wrote: > > 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 > > _______________________________________________ > Discuss mailing list > Discuss at blu.org > http://www.blu.org/mailman/listinfo/discuss -- Jerry Feldman <gaf at blu.org> Associate Director Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |