Skip to contentSkip to conversation

Problem using mandatory locks (other apps can read/dele

DISCUSSION E. Abbink 1 participant 1 message Apr 18, 2002 VFS

lore
Share & tools
lore

E. Abbink

author
#0 lore raw
Quoted 7 lines · E. Abbink
Quoted 3 lines

reading with a mandatory file lock set:

display - reads & displays image fine, seems to break lock

Quoted 8 lines

Did you tried 'strace'? display probably tries to mmap() it, and for some strange reason your kernel allows mmap on file marked for mandatory locking. There was some discussion about disabling mmap for them, but I have no idea what current state is, and what other platforms do.
Petr Vandrovec [email protected]

strace indeed shows a mmap2 being done.

So if mmap's arent blocked by locks, is there any other way to stop them?

Signature · 2 lines
NeoMail - Webmail that doesn't suck... as much.
http://neomail.sourceforge.net