in reply to Re: flock LOCK_EX not locking exclusively
in thread flock LOCK_EX not locking exclusively
child 1 child 2 child 3
open
open
flock (works for obvious reasons)
stat (works for obvious reasons)
unlink
close
open (creates a new file)
flock (works, no contention on new file)
stat (works, new file exists)
flock (works, no contention on old file)
stat (works, new file exists)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: flock LOCK_EX not locking exclusively
by pc88mxer (Vicar) on Jan 03, 2008 at 15:51 UTC |