https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272367

--- Comment #4 from Alan Somers <[email protected]> ---
(In reply to Konstantin Belousov from comment #2)

Your explanation makes sense.  But I have a hard time reconciling it with this
line from flock(2):

If a process holding a lock on a file forks and the child explicitly unlocks
the file, the parent will lose its lock.

That makes it sound like the lock goes away on first close, not on last one. 
Or is there a difference between the child closing the file and the child
explicitly unlocking the file?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to